Browse Source

Look for cpu subsystem instead of memory
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)

Michael Crosby 11 năm trước cách đây
mục cha
commit
a08e78a78c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      pkg/cgroups/cgroups.go

+ 1 - 1
pkg/cgroups/cgroups.go

@@ -132,7 +132,7 @@ func (c *Cgroup) Apply(pid int) error {
 	// http://www.freedesktop.org/wiki/Software/systemd/PaxControlGroups/
 	//
 	// we can pick any subsystem to find the root
-	cgroupRoot, err := FindCgroupMountpoint("memory")
+	cgroupRoot, err := FindCgroupMountpoint("cpu")
 	if err != nil {
 		return err
 	}