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

Document cgroup v1 issue for Docker desktop on Mac since v4.3.0 #761

Closed
ankudinov opened this issue Feb 4, 2022 · 2 comments
Closed

Document cgroup v1 issue for Docker desktop on Mac since v4.3.0 #761

ankudinov opened this issue Feb 4, 2022 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@ankudinov
Copy link
Contributor

The cgroup v1 issue was discussed in this thread before: #470
Nevertheless, I'd suggest to add a note specifically for containerlab on MacOS to inform the user about changes in v4.3.0 and v4.4.2: https://docs.docker.com/desktop/mac/release-notes/
One reason to do that is the problem with docker desktop GUI and the deprecatedCgroupv1 flag. When configured in Docker desktop preferences, it may not work or crash Docker desktop.
The working solution is documented here:
docker/for-mac#6073
I'd suggest to refer to this thread or add required commands directly to the Containerlab guide:

# Stop running Docker
test -z "$(docker ps -q 2>/dev/null)" && osascript -e 'quit app "Docker"'
# Install jq and moreutils so we can merge into the existing json file
brew install jq moreutils
# Add the needed cgroup config to docker settings.json
echo '{"deprecatedCgroupv1": true}' | \
  jq -s '.[0] * .[1]' ~/Library/Group\ Containers/group.com.docker/settings.json - | \
  sponge ~/Library/Group\ Containers/group.com.docker/settings.json
# Restart docker desktop
open --background -a Docker
@hellt
Copy link
Member

hellt commented Feb 9, 2022

Hi @ankudinov
so this is only needed for those images which still require cgroupv1, like ceos on mac?

@hellt hellt added the documentation Improvements or additions to documentation label Feb 9, 2022
@hellt
Copy link
Member

hellt commented Feb 11, 2022

added in 35642ea

@hellt hellt closed this as completed Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants