Will always be under system.slice on systemd

This commit is contained in:
Nick Ethier 2015-08-11 15:20:38 -06:00
parent f345454358
commit 0591c3f637
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ func getPidForContainer(id string) (int, error) {
// With more recent docker, cgroup will be in docker/
filepath.Join(cgroupRoot, cgroupThis, "docker", id, "tasks"),
// Even more recent docker versions under systemd use docker-<id>.scope/
filepath.Join(cgroupRoot, cgroupThis, "docker-" + id + ".scope", tasks"),
filepath.Join(cgroupRoot, "system.slice", "docker-"+id+".scope", "tasks"),
}
var filename string