mirror of
https://github.com/containers/podman.git
synced 2025-09-10 15:46:07 +08:00
Support running podman under a root v2 cgroup
Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
This commit is contained in:
@ -3108,7 +3108,7 @@ func (c *Container) getOCICgroupPath() (string, error) {
|
||||
case c.config.NoCgroups:
|
||||
return "", nil
|
||||
case c.config.CgroupsMode == cgroupSplit:
|
||||
selfCgroup, err := utils.GetOwnCgroup()
|
||||
selfCgroup, err := utils.GetOwnCgroupDisallowRoot()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
Reference in New Issue
Block a user