Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker for Desktop for Mac Apple Chip 4.18.0 ignoring deprecatedCgroupv1 value#6801

Closed
3 tasks done
francocm opened this issue Apr 12, 2023 · 5 comments
Closed
3 tasks done

Comments

@francocm
Copy link

francocm commented Apr 12, 2023

  • 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

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

  1. Install 4.17.0
  2. After installation, quit Docker Desktop completely.
  3. Set the value of deprecatedCgroupv1 under /Users/$(whoami)/Library/Group\ Containers/group.com.docker/settings.json to true
    • Add the property if missing
  4. Start Docker Desktop
  5. Open Terminal:
    1. 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)
    2. Verify that cgroup version is 1: /usr/local/bin/docker info --format '{{json .CgroupVersion}}'

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.

@francocm
Copy link
Author

@seanmwinn: Posted here similar post to yours. You might be interested.

@mgabeler-lee-6rs
Copy link

This affects Docker Desktop for Intel macs too.

@magyargergo
Copy link

magyargergo commented Apr 28, 2023

I upgraded Docker Desktop to 4.19.0 and I can confirm that it correctly loads the cgroup version from the settings.json.

$ cat ~/Library/Group\ Containers/group.com.docker/settings.json | grep "deprecated"
  "deprecatedCgroupv1": true,

$ docker info --format '{{json .CgroupVersion}}'
"1"

@MihaelaStoica
Copy link

Closing this issue, as fixed in Docker Desktop 4.19.

@docker-robot
Copy link

docker-robot bot commented Jun 23, 2023

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

@docker-robot docker-robot bot locked and limited conversation to collaborators Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants