Installing Rancher to step on the pit Cgroup problem

The newer version of docker desktop uses cgroupv2, and the docker image of Rancher server also needs to consider the issue of historical compatibility, so the built-in k3s of the server is not compatible with cgroupv2. So we need to switch Docker back to cgroup v1.

#修改文件
vim /etc/default/grub
#添加
GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=0"
# 更新 GRUB 配置,使修改生效。
grub2-mkconfig -o /boot/grub2/grub.cfg
#重启
 reboot

Use the command docker infoto see that it has become version1

insert image description here
You can also use the centos7 operating system, install the old version of docker, and there will be no cgroup-related problems

Guess you like

Origin blog.csdn.net/csdn570566705/article/details/131128454