安装docker问题:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

环境:

vmware 安装 CentOS-8.1.1911-x86_64-dvd1

 

问题现象:

执行docker version 命令后提示:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

现象截图:

 

解决方案:

执行如下两行命令

systemctl daemon-reload

systemctl restart docker.service

 

处理后运行命令截图:

 

posted @ 2024-06-12 23:58  challengesoflife  阅读(24)  评论(0编辑  收藏  举报