docker can only use cgroupv1, but fedora by default only use cgroupv2. How do I check if system is cgroupv1 compatible?
So far answer in this question can only determine if cgroupv2 is installed. But it cannot determine if unified_cgroup_hierarchy
set to 0 or 1. Is there any uniform way to determine if system is cgroupv1 compatible regardless whether the cgroupv2 installed or not?
So far I use mount -l
to check if there is cgroup2 on /sys/fs/cgroup
. If there is, that means cgroupv2 only. Is this method universally applicable in all distros? So far I only tested on Fedora and ubuntu. If not, is there an universal way to determine this?