When running a rootless container, how can one identify the cgroup in use from inside the
container? /proc/self/cgroup is "0::/", but the "real" cgroup is
One hacky way to find it out is to look at /run/.containerenv and get the container id
there, then to look for a directory in /sys/fs/cgroup named libpod-$containerid.scope, but
is there a more straight forward one?
In the end I would like to be able to read "memory.max" and
"memory.current" in the cgroup dir.