centos ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

2021/11/15 7:09:35

本文主要是介绍centos ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

 

主要原因是docker不是系统服务方式启动。

解决方法:

1、启动docker服务

service docker start
2、生成自启动服务

systemctl enable docker.service
3、查看服务状态,Active状态为:active(running)

systemctl status docker.service



这篇关于centos ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程