diff --git a/libpod/pod_internal_linux.go b/libpod/pod_internal_linux.go index fa85666ca1..ef7fefa41b 100644 --- a/libpod/pod_internal_linux.go +++ b/libpod/pod_internal_linux.go @@ -21,7 +21,7 @@ func (p *Pod) platformRefresh() error { } p.state.CgroupPath = cgroupPath case config.CgroupfsCgroupsManager: - if rootless.IsRootless() && isRootlessCgroupSet(p.config.CgroupParent) { + if !rootless.IsRootless() || isRootlessCgroupSet(p.config.CgroupParent) { p.state.CgroupPath = filepath.Join(p.config.CgroupParent, p.ID()) logrus.Debugf("setting pod cgroup to %s", p.state.CgroupPath)