100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > Docker启动提示:Cannot connect to the Docker daemon...

Docker启动提示:Cannot connect to the Docker daemon...

时间:2023-07-07 00:18:22

相关推荐

Docker启动提示:Cannot connect to the Docker daemon...

执行docker image导入时,提示

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

执行docker ps时,提示

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS

没有任何进程。

此时已确定Docker本身已经安装正常。

问题原因是因为docker服务没有启动,所以在相应的/var/run/ 路径下找不到docker的进程。

执行

service docker start

命令,启动docker服务。

执行docker ps ,仍然没有任何进程。

解决方法:

1.首先要查看docker daemon是否在运行。

ps aux | grep docker

2.docker deamon正在运行,则停止docker服务,再启动

service docker stop

ps aux | grep docker

service docker start

3.切换用户测试一下:

sudo docker info,问题解决。再次加载image成功。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。