docker遇到Cannot connect to the Docker daemon at unix:///var/run/docker.sock问题的解决方案
问题背景: 由于服务器没有经常维护,导致应用不能正常运行。排查问题,执行 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 正常看到容器列表了