The title almost says it all:
From within a running docker container, how can I find out if it is running with cgroups 1.0 or with cgroups 2.0?
The title almost says it all:
From within a running docker container, how can I find out if it is running with cgroups 1.0 or with cgroups 2.0?
run the cmd
docker info | grep 'Cgroup Version'
it will print the cgroup version use by docker on your host
You should be able to check whether cgroup2 is available or not with the command:
grep -c cgroup2 /proc/filesystems
If 1
is returned the cgroups 2.0 are available, but I'm not sure this will be sufficient to conclude that they are also used.