mirror of https://github.com/vishvananda/netns
Will always be under system.slice on systemd
This commit is contained in:
parent
f345454358
commit
0591c3f637
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue