#1、在docker拉取鏡像后啟動(dòng)不起來(lái)
“Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the Docker daemon running?”?
此錯(cuò)誤的原因包括:
(1)The Docker daemon is not running. Docker守護(hù)程序未運(yùn)行
(2)Docker doesn’t shutdown cleanly. Docker無(wú)法完全關(guān)閉。
(3)Lack of root privileges to start the docker service. 缺少啟動(dòng)docker服務(wù)的root權(quán)限。
解決方案:
方法一:查看?/var/run/docker.dock
?文件是否變成目錄,如果是就刪除該目
rm -rf /var/run/docker.sock/
然后重啟docker
systemctl restart docker
方法二:檢查docker是否在運(yùn)行文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-768697.html
systemctl status docker
如果 Docker 未運(yùn)行,你可以使用以下命令啟動(dòng) Docker 服務(wù)文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-768697.html
systemctl start docker
到了這里,關(guān)于docker中“Cannot connect to the Docker daemon at .............Is the Docker daemon running?” 解決辦法的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!