100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon runn

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

时间:2021-04-23 01:03:24

相关推荐

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

docker学习问题记录

打开docker遇到这种情况

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

奇怪的是:systemctl restart docker 后作用 systemctl restart docker.service

systemctl status docker 居然显示的是正常状态

查询系统日志发现应该是错误退出的docker导致的

于是使用systemctl stop docker.service

Warning: Stopping docker.service, but it can still be activated by:

docker.socket

虽然是warning,还是去研究一下原因

查询得到解释:

这是docker在关闭状态下被访问自动唤醒机制,很人性化,即这时再执行任意docker命令会直接启动

执行systemctl stop docker后再执行systemctl stop docker.socket即可

成功。重新systemctl start docker.service

docker不再报错

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