- Let's come to the docker-host container's root dir
Now install cgroup-tools and htop
apt-get install -y cgroup-tools htop
Create a cGroup /sandbox
Use this command
cgcreate -g cpu,memory,blkio,freezer,devices:/sandbox
if any error occurs
Check if cgroups are mounted:
mount | grep cgroup
If you don’t see cgroups mounted, try manually mounting them:
sudo mount -t cgroup2 none /sys/fs/cgroup