Skip to content

cgroupdriver is hardcoded to cgroupfs #1311

@win-t

Description

@win-t

Hi, I want to report minor issue.
I just found out that cgroupdriver is hardcoded to cgroupfs

// enable cgroupfs for k3s (if not set by user)
if _, ok := conf["exec-opts"]; !ok {
conf["exec-opts"] = []string{"native.cgroupdriver=cgroupfs"}
} else if opts, ok := conf["exec-opts"].([]string); ok {
conf["exec-opts"] = append(opts, "native.cgroupdriver=cgroupfs")
}

The effect is that docker will create cgroup directly under the root cgroup

Image

This is a violation of the systemd contract https://systemd.io/CGROUP_DELEGATION/

Image

we need to set native.cgroupdriver=systemd if the system is using systemd, but it is not configurable now because it is hardcoded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions