-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman info - print available cgroup controllers #10306
Comments
The complete list is available at github.com/docker/docker/pkg/sysinfo
https://github.com/moby/moby/tree/master/pkg/sysinfo |
Care to open a PR to fix? |
Do you want podman info to report all of this information? |
The request from // dockerInfo corresponds to `docker info --format '{{json .}}'`
type dockerInfo struct {
CgroupDriver string `json:"CgroupDriver"` // "systemd", "cgroupfs", "none"
CgroupVersion string `json:"CgroupVersion"` // e.g. "2"
MemoryLimit bool `json:"MemoryLimit"`
PidsLimit bool `json:"PidsLimit"`
CPUShares bool `json:"CPUShares"`
SecurityOptions []string `json:"SecurityOptions"`
} It is mostly used for producing warnings, when running rootless / cgroups v2: if info.Rootless {
if !info.Cgroup2 {
return errors.New("running kind with rootless provider requires cgroup v2, see https://kind.sigs.k8s.io/docs/user/rootless/")
}
if !info.SupportsMemoryLimit || !info.SupportsPidsLimit || !info.SupportsCPUShares {
return errors.New("running kind with rootless provider requires setting systemd property \"Delegate=yes\", see https://kind.sigs.k8s.io/docs/user/rootless/")
}
} * mostly because it defaults to not being enabled, when running on Ubuntu
The current code was trying to parse If the three fields were available in the |
Opening a new issue with from:
Originally posted by @afbjorklund in #10289 (comment)
The text was updated successfully, but these errors were encountered: