mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-07 09:25:43 +00:00
Merge pull request #4380 from giuseppe/rootless-create-cgroup-for-conmon
libpod, rootless: create cgroup for conmon
This commit is contained in:
commit
381fa4df87
1 changed files with 0 additions and 8 deletions
|
|
@ -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…
Add table
Reference in a new issue