Open AkihiroSuda opened 4 years ago
@giuseppe @kolyshkin Do you think this should be in rc90 (rc11)? or rc91 (rc12)?
I am not sure it makes sense for runc. For crun I've added the /container
suffix because cgroups are handled differently. crun uses systemd only to create and delegate a cgroup, that is managed by cgroupfs. crun never uses the d-bus properties for dealing with systemd cgroups. Systemd allows to write only to sub-cgroups, even when they are delegated, so adding the suffix was a forced choice.
@giuseppe Thanks for clarification, I can close this issue then. Any chance to let crun follow the runc convention (no /container
subgroup on v2)? If not, could you add the difference to crun documentation?
Any chance to let crun follow the runc convention (no
/container
subgroup on v2)? If not, could you add the difference to crun documentation?
A subgroup is required when using systemd delegation, unless the cgroup is configured with the d-bus API, that I don't really like. I will document the difference in crun.
https://github.com/containers/crun/blob/a4f4fb90835bb79cd12bafb14a5b3d3f55edd7c6/crun.1.md#runocisystemdsubgroupsubgroup
To avoid diversion across runc and crun, we should use(EDIT Probably we don't need to change the default: https://github.com/opencontainers/runc/issues/2448#issuecomment-636881647)"container"
subgroup by default on cgroup2.