Skip to content

Commit

Permalink
Merge pull request kata-containers#2178 from amshinde/fix-rootless-cg…
Browse files Browse the repository at this point in the history
…roups

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.