Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2178 from amshinde/fix-rootless-cgroups
Browse files Browse the repository at this point in the history
rootless: Fix cgroup creation logic for rootless
  • Loading branch information
Eric Ernst authored Nov 11, 2019
2 parents 31b5f96 + f6ffb79 commit 8c7a83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8c7a83b

Please sign in to comment.