mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Use the cpu cgroup subsystem instead of memory because its non optional
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
ed8466c44c
commit
757c7581c8
1 changed files with 2 additions and 3 deletions
|
@ -301,9 +301,8 @@ func (d *driver) Info(id string) execdriver.Info {
|
|||
func (d *driver) GetPidsForContainer(id string) ([]int, error) {
|
||||
pids := []int{}
|
||||
|
||||
// memory is chosen randomly, any cgroup used by docker works
|
||||
subsystem := "memory"
|
||||
|
||||
// cpu is chosen because it is the only non optional subsystem in cgroups
|
||||
subsystem := "cpu"
|
||||
cgroupRoot, err := cgroups.FindCgroupMountpoint(subsystem)
|
||||
if err != nil {
|
||||
return pids, err
|
||||
|
|
Loading…
Reference in a new issue