diff --git a/netns_linux.go b/netns_linux.go index f7bcfac..0f038d1 100644 --- a/netns_linux.go +++ b/netns_linux.go @@ -182,6 +182,8 @@ func getPidForContainer(id string) (int, error) { filepath.Join(cgroupRoot, cgroupThis, "docker", id, "tasks"), // Even more recent docker versions under systemd use docker-.scope/ filepath.Join(cgroupRoot, "system.slice", "docker-"+id+".scope", "tasks"), + // Even more recent docker versions under cgroup/systemd/docker// + filepath.Join(cgroupRoot, "..", "systemd", "docker", id, "tasks"), } var filename string