Dec 22 14:50:27 master49 kubelet: F1222 14:50:27.123073 30898 server.go:274] failed to run Kubelet: failed to get docker version: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Dec 22 14:50:27 master49 systemd: Unit kubelet.service entered failed state.
Dec 22 14:50:27 master49 systemd: kubelet.service failed.
^C
[root@master49 ~]# docker info
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Build with BuildKit (Docker Inc., v0.5.0-docker)
Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info
[root@master49 ~]# service docker restart
Redirecting to /bin/systemctl restart docker.service
[root@master49 ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@master49 ~]# systemctl daemon-reload
[root@master49 ~]# service docker restart
Redirecting to /bin/systemctl restart docker.service
[root@master49 ~]# kubectl get node
NAME STATUS ROLES AGE VERSION
master49 Ready master 28h v1.18.2
master50 Ready master 28h v1.18.2
master56 Ready master 28h v1.18.2
node52 Ready <none> 28h v1.18.2
node53 Ready <none> 28h v1.18.2
我是修改过 /etc/docker/daemon.json 然后改好后出现的问题
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。