Look for cpu subsystem instead of memory

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Upstream-commit: a08e78a78c4b548919515fa7910db56990ef44dc
Component: engine
This commit is contained in:
Michael Crosby
2014-02-24 10:46:20 -08:00
parent 0b2fdfff35
commit 7ebf071730

View File

@ -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
}