-
Notifications
You must be signed in to change notification settings - Fork 21
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
Mounting of /sys/fs/cgroup
is not necessary in Docker backend.
#1248
Comments
FWIW I also don't know why this is there and it comes from the port of DC/OS Docker - see https://github.com/dcos/dcos-docker/blob/feed8d98a88262b7023c0ed98f454644360318aa/Makefile#L58. |
This is the original commit which added the mounting - mesosphere-backup/dcos-docker@bb56822. We have no context except the commit message "mount systemd all the things". |
The comment by the code is "# Mount cgroups into agents for Mesos DRF." from @timaa2k . Any thoughts on whether removing this would be an issue @jieyu or how to maybe get around it? Prompted by @vishnu2kmohan 's comment "Just wanted to let you know that it doesn't work on non-systemd distributions like Gentoo with OpenRC and I need to fake mount the systemd cgroup on my machine, just to get started." |
I removed the mount in #1601 - let's see if this comes back to bite us! At least if it does we will know why we had this mount. |
When we remove the mount, and do no tinkering, we see the following when attempting to deploy Kafka.
@jieyu , @Gilbert88 - any ideas what tinkering we need to do. |
Because of the above, @mhrabovcin and I added "Mount cgroups by default, adding an option to not mount #1611". We would like to be able to offer users an option to not mount |
This allows each dc/os container to see the host cgroups. For the sake of isolation, this is not the ideal way. I don't see a reason why
/sys/fs/cgroup
needs to be bind mounted into the DC/OS container.By default, in privileged mode, Docker gives you write access to the cgroup of the container itself.
There might be some tweak needed to make Mesos agent happy. This is definitely doable.
The text was updated successfully, but these errors were encountered: