Merge pull request #4380 from giuseppe/rootless-create-cgroup-for-conmon

libpod, rootless: create cgroup for conmon
This commit is contained in:
OpenShift Merge Robot authored and GitHub committed 2019-10-30 21:42:47 +01:00
commit 381fa4df87
1 file changed
-8
-8
View File
@@ -1220,14 +1220,6 @@ func (r *ConmonOCIRuntime) moveConmonToCgroupAndSignal(ctr *Container, cmd *exec
mustCreateCgroup = false
}
if rootless.IsRootless() {
ownsCgroup, err := cgroups.UserOwnsCurrentSystemdCgroup()
if err != nil {
return err
}
mustCreateCgroup = !ownsCgroup
}
if mustCreateCgroup {
cgroupParent := ctr.CgroupParent()
if r.cgroupManager == SystemdCgroupsManager {