diff --git a/netns_linux.go b/netns_linux.go index abdc308..97ce6a6 100644 --- a/netns_linux.go +++ b/netns_linux.go @@ -167,8 +167,10 @@ func getPidForContainer(id string) (int, error) { filepath.Join(cgroupRoot, cgroupThis, id, "tasks"), // With more recent lxc versions use, cgroup will be in lxc/ filepath.Join(cgroupRoot, cgroupThis, "lxc", id, "tasks"), - // With more recent dockee, cgroup will be in docker/ + // 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-.scope/ + filepath.Join(cgroupRoot, cgroupThis, "docker-" + id + ".scope", tasks"), } var filename string