系统相关
首页 > 系统相关> > centos ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

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

标签:daemon,http,Couldn,service,running,connect,docker,localhost
来源: https://www.cnblogs.com/andy0816/p/15554271.html