Merge pull request #2178 from amshinde/fix-rootless-cgroups

rootless: Fix cgroup creation logic for rootless
This commit is contained in:
Eric Ernst
2019-11-11 08:43:25 -08:00
committed by GitHub

View File

@@ -916,7 +916,7 @@ func (c *Container) create() (err error) {
}
c.process = *process
if !c.sandbox.config.SandboxCgroupOnly || !rootless.IsRootless() {
if !rootless.IsRootless() && !c.sandbox.config.SandboxCgroupOnly {
if err = c.cgroupsCreate(); err != nil {
return
}