How to get docker container ID from within the container with cgroup v2
As Docker supports cgroup v2 since engine version 20.10, it will automatically use it on distributions that have cgroups v2 enabled. The known solutions to get the unique container ID from within the container, do not work anymore. / # cat /proc/self/cgroup 0::/ / # cat /proc/1/cpuset / Tried with docker v20.10.8 on Debian 11 with alpine:latest. Working solu