runc/libcontainer/cgroups
Craig Furman f5c5aac958 Create containers when cgroups already mounted
Runc needs to copy certain files from the top of the cgroup cpuset hierarchy
into the container's cpuset cgroup directory. Currently, runc determines
which directory is the top of the hierarchy by using the parent dir of
the first entry in /proc/self/mountinfo of type cgroup.

This creates problems when cgroup subsystems are mounted arbitrarily in
different dirs on the host.

Now, we use the most deeply nested mountpoint that contains the
container's cpuset cgroup directory.

Signed-off-by: Konstantinos Karampogias <konstantinos.karampogias@swisscom.com>
Signed-off-by: Will Martin <wmartin@pivotal.io>
2017-03-15 10:10:30 +00:00
..
fs Create containers when cgroups already mounted 2017-03-15 10:10:30 +00:00
systemd Remove unused function in systemd cgroup 2017-03-07 15:11:37 +08:00
cgroups.go cgroups: update the comments 2017-01-03 22:40:12 +08:00
cgroups_test.go Rework ParseCgroupFile 2015-09-10 20:59:27 +03:00
cgroups_unsupported.go Move libcontainer into subdirectory 2015-06-21 19:29:15 -07:00
stats.go Fix trivial style errors reported by `go vet` and `golint` 2016-04-12 08:13:16 +00:00
utils.go Create containers when cgroups already mounted 2017-03-15 10:10:30 +00:00
utils_test.go Create containers when cgroups already mounted 2017-03-15 10:10:30 +00:00