-
Notifications
You must be signed in to change notification settings - Fork 134
Closed
Description
- I have tried with the latest version of Docker Desktop
- I have tried disabling enabled experimental features
- I have uploaded Diagnostics
- Diagnostics ID:
73CF779E-DEE1-4208-9B57-1B9D663A2890/20230418101016
Note
- This issue is similar to Docker for Mac 4.18.0 deprecatedCgroupv1 flag is being ignored moby/moby#45303 since that ticket was closed with the suggestion to raise it here instead. I am not the original poster there, but it seems like I have the same issue.
Expected behavior
With deprecatedCgroupv1
set to true
under /Users/$(whoami)/Library/Group\ Containers/group.com.docker/settings.json
, Docker should be using cgroup v1 instead of v2.
➜ ~ cat /Users/$(whoami)/Library/Group\ Containers/group.com.docker/settings.json | grep deprecatedCgroupv1
"deprecatedCgroupv1": true,
➜ ~ /usr/local/bin/docker info --format '{{json .CgroupVersion}}'
"1"
➜ ~
Actual behavior
On the latest 4.18.0
version, this is ignored, and Docker is using cgroup v2 regardless of the property.
➜ ~ cat /Users/$(whoami)/Library/Group\ Containers/group.com.docker/settings.json | grep deprecatedCgroupv1
"deprecatedCgroupv1": true,
➜ ~ /usr/local/bin/docker info --format '{{json .CgroupVersion}}'
"2"
➜ ~
Reverting back to 4.17.0
resolves the issue.
Information
To reproduce
- Install
4.17.0
- After installation, quit Docker Desktop completely.
- Set the value of
deprecatedCgroupv1
under/Users/$(whoami)/Library/Group\ Containers/group.com.docker/settings.json
totrue
- Add the property if missing
- Start Docker Desktop
- Open Terminal:
- Verify that the property remained
true
:cat /Users/$(whoami)/Library/Group\ Containers/group.com.docker/settings.json | grep deprecatedCgroupv1
(if no, repeat steps 2-4 above) - Verify that cgroup version is
1
:/usr/local/bin/docker info --format '{{json .CgroupVersion}}'
- Verify that the property remained
After confirming the above, upgrade to (the latest) 4.18.0
. Steps 2-4 should be remembered, so you can go directly to step 5 above.
rnix-fandom, madrover, ddbrodsky, peanball and magyargergo