执行docker ps时提示
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
解决方法
可能是由于配置了远程访问导致
/etc/systemd/system/docker.service 查看配置
追加配置 -H unix:///var/run/docker.sock
再次执行命令重启docker即可
systemctl daemon-reload
service docker restart