mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 07:48:55 +00:00
rootless: Fix cgroup creation logic for rootless
We do not want to create cgroups in case of rootless. Fix the logic to implement this. Fixes #2177 Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
parent
d0615f8220
commit
f6ffb791e7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user