Skip to content

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

Closed

Description

@francocm
  • 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.

Activity

  1. francocm commented on Apr 12, 2023

    @francocm
    Author

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

  2. mgabeler-lee-6rs commented on Apr 12, 2023

    @mgabeler-lee-6rs

    This affects Docker Desktop for Intel macs too.

  3. magyargergo commented on Apr 28, 2023

    @magyargergo

    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"
    
  4. MihaelaStoica commented on Apr 28, 2023

    @MihaelaStoica

    Closing this issue, as fixed in Docker Desktop 4.19.

  5. docker-robot commented on Jun 23, 2023

    @docker-robot

    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

  6. locked and limited conversation to collaborators on Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions