• 周六. 10 月 12th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

Warning:detected ‘cgroupfs’ as the Docker cgroup driver. The recommended driver is ‘systemd’.

King Wang

1 月 3, 2022

perform kubeadm init Cluster initialization encountered :

[WARNING IsDockerSystemdCheck]: detected “cgroupfs” as the Docker cgroup driver. The recommended driver is “systemd”.

[ Warning IsDockerSystemdCheck]: detected “cgroupfs” As Docker cgroup The driver . The recommended driver is “systemd”.

 

So let’s change the driver .

 

resolvent : modify docker

because Ubuntu No default settings root, So set it up root user

sudo passwd root

After entering the password , Switch root user :su root

stay /etc/docker Create daemon.json And edit :

mkdir /etc/docker/daemon.json

Add the following :

{
"exec-opts":["native.cgroupdriver=systemd"]
}

 

restart docker

systemctl restart docker
systemctl status docker

 

 

 

发表回复