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

Is this really necessary? -v /sys/fs/cgroup:/sys/fs/cgroup:rw #12

Closed
adrianog opened this issue Sep 25, 2023 · 1 comment
Closed

Is this really necessary? -v /sys/fs/cgroup:/sys/fs/cgroup:rw #12

adrianog opened this issue Sep 25, 2023 · 1 comment

Comments

@adrianog
Copy link

adrianog commented Sep 25, 2023

Is this really necessary? What are the possible implications on the host?

See moby/moby#42040
and long discussion linked from there:
moby/moby#42275

@huapox
Copy link
Member

huapox commented Oct 12, 2023

Thx for ref,

In this repo's images, it's only needed for gnome which must run with systemd with the default ENV START_SYSTEMD=true

# Plasma/Mint with START_SYSTEMD=false (run with supervisor)
docker run -it --rm --net=host --shm-size 1g \
  -e L=en_US -e VNC_OFFSET=99 -e START_SYSTEMD=false infrastlabs/docker-headless:cmate

# Gnome with systemd, cgroup_v2: --cgroupns=host (docker 20.10+)
docker run -it --rm --net=host --shm-size 1g -e VNC_OFFSET=99 \
  --tmpfs /run --tmpfs /run/lock --tmpfs /tmp -v /sys/fs/cgroup:/sys/fs/cgroup:rw \
  --cap-add SYS_BOOT --cap-add SYS_ADMIN infrastlabs/docker-headless:gnome

@huapox huapox closed this as completed Oct 12, 2023
@huapox huapox changed the title -v /sys/fs/cgroup:/sys/fs/cgroup:rw Is this really necessary? -v /sys/fs/cgroup:/sys/fs/cgroup:rw Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants