mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
2c30069c67
Currently, we can create subcgroup in a rootless container with systemd cgroupv2 on centos8.
But after the container exited, the container cgroup and its subcgroup will not be removed.
Fix this by removing all directories recursively.
Fixes: https://github.com/opencontainers/runc/issues/3225
Signed-off-by: Kang Chen <kongchen28@gmail.com>
[kolyshkin: cherry picked from commit 7758d3fb02,
changing the code to use cgroups.RemovePath().]
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>