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

嗯,按照网上的办法装了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

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

发布了4 篇原创文章 · 获赞 3 · 访问量 80

猜你喜欢

转载自blog.csdn.net/Elleryer/article/details/105387774
今日推荐