Skip to content

cgroup1: use shim v2 #41107

@AkihiroSuda

Description

@AkihiroSuda

We have been already using shim v2 (containerd-shim-runc-v2) on cgroup v2 hosts:

moby/daemon/daemon_unix.go

Lines 1759 to 1761 in aaf470e

func (daemon *Daemon) useShimV2() bool {
return cgroups.IsCgroup2UnifiedMode()
}

We should use shim v2 on cgroup v1 hosts as well.

I think we can safely switch the default, but if we fear potential regression, probably we should have a new daemon flag like --containerd-shim-api=(1|2) which defaults to 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/daemonCore Engineimpact/changelogkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions