ossf / ossf/package-analysis

docker-compose does not work with cgroupsv2

Open
#382 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
912
Forks
74
PR merge metrics
No merged PRs in 30d

Description

While researching #378 I discovered that the docker-compose setup in example/e2e does not appear to work under cgroupsv2.

docker run --cgroupns=host does work, but there is no equivalent for use in docker-compose.yml.

This is an issue with support in upstream docker-compose. See: https://github.com/compose-spec/compose-spec/issues/148, https://github.com/docker/compose/issues/8167

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the docker-compose setup in example/e2e and compare its behavior under cgroupsv2 with the reported docker run --cgroupns=host command. Read the linked Compose upstream issues to determine whether a supported configuration or workaround exists; done means the example works under cgroupsv2 without relying on an unresolved upstream change.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.