package-analysis icon indicating copy to clipboard operation
package-analysis copied to clipboard

docker-compose does not work with cgroupsv2

Open calebbrown opened this issue 3 years ago • 2 comments

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

calebbrown avatar Sep 30 '22 05:09 calebbrown

A work around is to create/edit /etc/docker/daemon.json with the following:

{
    "default-cgroupns-mode": "host"
}

calebbrown avatar Sep 30 '22 06:09 calebbrown

Added docs in #404

calebbrown avatar Oct 19 '22 01:10 calebbrown