Merge pull request #868 from giuseppe/cgroup-pids-no-create-root
cgroups: do not create $ROOT/pids on cgroupv2
This commit is contained in:
commit
3c0516757c
|
|
@ -34,6 +34,9 @@ func (c *pidHandler) Apply(ctr *CgroupControl, res *spec.LinuxResources) error {
|
|||
|
||||
// Create the cgroup
|
||||
func (c *pidHandler) Create(ctr *CgroupControl) (bool, error) {
|
||||
if ctr.cgroup2 {
|
||||
return false, nil
|
||||
}
|
||||
return ctr.createCgroupDirectory(Pids)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue