[转帖]Warning:detected "cgroupfs" as the Docker cgroup driver. The recommended driver is &qu

Posted jinanxiaolaohu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[转帖]Warning:detected "cgroupfs" as the Docker cgroup driver. The recommended driver is &qu相关的知识,希望对你有一定的参考价值。

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

https://www.cnblogs.com/ExMan/p/11613812.html

 

执行kubeadm init集群初始化时遇到:

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

[警告IsDockerSystemdCheck]:检测到“cgroupfs”作为Docker cgroup驱动程序。 推荐的驱动程序是“systemd”。

 

 

所以我们更换一下驱动。

 

解决方法:修改docker

由于Ubuntu默认没有设置root,所以设置一下root用户

sudo passwd root
输入密码后,切换root用户:su root

 

在/etc/docker下创建daemon.json并编辑:

mkdir /etc/docker/daemon.json
加入以下内容:

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


 

重启docker

systemctl restart docker
systemctl status docker

以上是关于[转帖]Warning:detected "cgroupfs" as the Docker cgroup driver. The recommended driver is &qu的主要内容,如果未能解决你的问题,请参考以下文章

关于warning: Clock skew detected. Your build may be incomplete. 的解决方法

WARNING: Detected execution as “root“ user. This is NOT recommended!

IAR调试cc2541串口遇到的Warning : Possible IDATA stack overflow detected

解决warning: Clock skew detected. Your build may be incomplete

Warning:detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "s

windows环境下eclipse c/c++编译出现警告make: warning: Clock skew detected. Your build may be incompl