问题背景:
由于服务器没有经常维护,导致应用不能正常运行。排查问题,执行

docker ps 
命令时,报如下错误:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

解决方案,如下:

systemctl daemon-reload
service docker start

再执行命令

docker ps

正常看到容器列表了

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐