树莓派docker 报错 Cannot connect to the Docker daemon. Is the docker daemon running on this host?

Ebony ·
更新时间:2024-09-20
· 929 次阅读

嗯,按照网上的办法装了Docker准备连接IoT Edge总是出现400错误。然后说按照微软自己的说明文档装一下Moby,结果兼容性有问题。然后说那我接着试试Docker吧就报出了Cannot connect to the Docker daemon. Is the docker daemon running on this host?错误。

按照网上的方式,重启服务器啥的都试了,比如如下的代码可以试试,虽然这次没用说不定以后会有这种问题
P.S.一定切到root模式或者命令行带上sudo,不然来回输密码烦死

//未启动的话启动服务器 sudo service docker start //另一种启动方式 sudo systemctl start docker //说不定重启大法也可以 sudo systemctl restart docker

结果完事儿继续报错:
Job for docker.service failed because the control process exited with error
然后这时候可以用看一看自己docker的运行状态

systemctl status docker.service

能找到问题最好了。然并卵

看了看反正还没配置啥,不行直接重装docker了

sudo apt remove docker sudo apt install docker-ce docker run hello-world

在这里插入图片描述
回到最初,继续鼓捣


作者:埃勒里灬波洛



connect this IS TO daemon host Docker

需要 登录 后方可回复, 如果你还没有账号请 注册新账号