Skip to content

Commit 71c1de7

Browse files
Use host cgroup in Docker Compose to make cgroupv2 work for hosts without cgroupv1 fallback.
1 parent e90a827 commit 71c1de7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ services:
3030
ports:
3131
- 12345:80
3232
privileged: true
33+
# Note that this requires Docker Compose > 2.15.
34+
# If you have an older version upgrade it, or you can comment out this line
35+
cgroup: host
3336
working_dir: ${PWD}
3437
environment:
3538
- PROJECT_DIR=${PWD}

0 commit comments

Comments
 (0)