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 2019-10-30 21:42:47 +01:00 committed by GitHub
commit 381fa4df87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -1220,14 +1220,6 @@ func (r *ConmonOCIRuntime) moveConmonToCgroupAndSignal(ctr *Container, cmd *exec
mustCreateCgroup = false mustCreateCgroup = false
} }
if rootless.IsRootless() {
ownsCgroup, err := cgroups.UserOwnsCurrentSystemdCgroup()
if err != nil {
return err
}
mustCreateCgroup = !ownsCgroup
}
if mustCreateCgroup { if mustCreateCgroup {
cgroupParent := ctr.CgroupParent() cgroupParent := ctr.CgroupParent()
if r.cgroupManager == SystemdCgroupsManager { if r.cgroupManager == SystemdCgroupsManager {