mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
Always enable cgroup namespace for containers
In cgroupv2 hierrachy, cgroup setup for nested containers (i.e. docker) are incorrect without enabling cgroup namespace. This enables cgroup namespace for all containers to fix the incorrect cgroup setup. See https://github.com/linuxkit/linuxkit/issues/3734 Signed-off-by: Daniel Dao <dqminh89@gmail.com>
This commit is contained in:
parent
1bd84de2b3
commit
0ffd861a92
@ -875,7 +875,8 @@ func ConfigToOCI(yaml *Image, config imagespec.ImageConfig, idMap map[string]uin
|
||||
// Always create a new mount namespace
|
||||
namespaces = append(namespaces, specs.LinuxNamespace{Type: specs.MountNamespace})
|
||||
|
||||
// TODO cgroup namespaces
|
||||
// Always create a new cgroup namespace
|
||||
namespaces = append(namespaces, specs.LinuxNamespace{Type: specs.CgroupNamespace})
|
||||
|
||||
// Capabilities
|
||||
capCheck := map[string]bool{}
|
||||
|
Loading…
Reference in New Issue
Block a user