[k8s]detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd"

安装k8s时报错

[root@master ~]# cat /etc/docker/daemon.json
{
"registry-mirrors": [
"https://kfwkfulq.mirror.aliyuncs.com",
"https://2lqq34jg.mirror.aliyuncs.com",
"https://pee6w651.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com"
],
"dns": ["114.114.114.114","8.8.4.4"],
"exec-opts": ["native.cgroupdriver=systemd"]            ### 新增这行
}
systemctl restart docker

检查

[root@master ~]# docker info | grep Cgroup
 Cgroup Driver: systemd

END

原文地址:https://www.cnblogs.com/leoshi/p/13473108.html