Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cgroupv2: fix fs2 driver default path
When the cgroupv2 fs driver is used without setting cgroupsPath, it picks up a path from /proc/self/cgroup. On a host with systemd, such a path can look like (examples from my machines): - /user.slice/user-1000.slice/session-4.scope - /user.slice/user-1000.slice/[email protected]/gnome-launched-xfce4-terminal.desktop-4260.scope - /user.slice/user-1000.slice/[email protected]/gnome-terminal-server.service This cgroup already contains processes in it, which prevents to enable controllers for a sub-cgroup (writing to cgroup.subtree_control fails with EBUSY or EOPNOTSUPP). Obviously, a parent cgroup (which does not contain tasks) should be used. Fixes opencontainers/runc/issues/2298 Signed-off-by: Kir Kolyshkin <[email protected]>
- Loading branch information