Activate Docker Cgroup Version 2
To run containerized services, it is strongly recommended that Cgroup version 2 is activated. Follow the steps below to activate this version:
1. Check if Cgroup version 2 is supported.
grep cgroup /proc/filesystems
2. Check the Cgroup version.
docker info | grep -i group
3. Activate Cgroup version 2 by adding the following kernel boot parameters to the GRUB boot entries:
systemd.unified_cgroup_hierarchy=1
cgroup_enable=memory swapaccount=1
The exact procedure depends on the Linux distribution, for example, for RHEL you can use:
sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=1 cgroup_enable=memory swapaccount=1"
sudo reboot
Last modified date: 12/19/2024