Closed zhum closed 7 months ago
What do you mean by problems? This is expected, cgroup hierarchy is remounted to handle namespacing. You can always configure the hook if you have specific requirements
I mean almost every entry is mounted twice. E.g. cgroup2 on /sys/fs/cgroup/unified
. Usually it doesn't make any troubles, but some applications handle this badly.
Is there a way to mount each entry only once?
The right answer is - this is unavoidable. The second mount masks the original hosts' cgroup mountpoint, which is necessary.
In any container (just ubuntu e.g.) we can see /sys/fs/cgroups/... mounted twice. This causes problems for some apps (elasticsearch e.g.). Here is an filtered example of mounts inside the container:
How can we debug it?