kubeadm init 遇到Docker告警问题-[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docke

2021-04-19 17:48:27 浏览数 (1)

报错信息

代码语言:javascript复制
[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd".
Please follow the guide at https://kubernetes.io/docs/setup/cri/

解决方案

代码语言:javascript复制
vim /usr/lib/systemd/system/docker.service

修改成如下内容

代码语言:javascript复制
ExecStart=/usr/bin/dockerd --exec-opt native.cgroupdriver=systemd

重载配置文件并重启服务

代码语言:javascript复制
systemctl daemon-reload && systemctl restart docker

0 人点赞