Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Always launch docker containers in the correct parent cgroup #1118
Currently, the docker executor script hardcodes the parent cgroup of a docker container to
This change also removes the code for setting
Currently, the docker executor script hardcodes the parent cgroup of a docker container to "mesos/$CGROUPS_GUID". This change makes it instead discover the cgroup using "/proc/self/cgroup" per the reccommendation of: https://www.freedesktop.org/wiki/Software/systemd/PaxControlGroups/ This change also removes the code for setting memory.use_hierarchy=1 because it is ineffective. In order to set that property, it must be set on the root cgroup, before any child cgroups are created. My internal changes to cgroups on our mesos slaves takes care of that and all child cgroups inherit the property.