mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
use empty string as cgroup path to grab first find
Signed-off-by: Andrew Hsu <andrewhsu@docker.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
75c4b74155
commit
78045a5419
2 changed files with 2 additions and 2 deletions
|
@ -1484,7 +1484,7 @@ func (daemon *Daemon) initCgroupsPath(path string) error {
|
|||
// for the period and runtime as this limits what the children can be set to.
|
||||
daemon.initCgroupsPath(filepath.Dir(path))
|
||||
|
||||
mnt, root, err := cgroups.FindCgroupMountpointAndRoot("cpu")
|
||||
mnt, root, err := cgroups.FindCgroupMountpointAndRoot("", "cpu")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -232,7 +232,7 @@ func checkCgroupCpusetInfo(cgMounts map[string]string, quiet bool) cgroupCpusetI
|
|||
|
||||
// checkCgroupPids reads the pids information from the pids cgroup mount point.
|
||||
func checkCgroupPids(quiet bool) cgroupPids {
|
||||
_, err := cgroups.FindCgroupMountpoint("pids")
|
||||
_, err := cgroups.FindCgroupMountpoint("", "pids")
|
||||
if err != nil {
|
||||
if !quiet {
|
||||
logrus.Warn(err)
|
||||
|
|
Loading…
Reference in a new issue