mirror of https://github.com/containers/podman.git
libpod, rootless: create cgroup for conmon
always create a new cgroup for conmon also when running as rootless. We were previously creating one only when necessary, but that behaves differently than root containers. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
e7540d0406
commit
78e2a31943
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue