報錯代碼
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
報錯原因
我是用在VMware中搭建的centos7環境,部署完docker之後,重啓docker報錯,然後docker restart也沒用
解決辦法
查看文件系統
cd /etc/docker/daemon.json
刪除裏面內容用 只剩下{}即可 wq保存退出 在輸入service docker restart
之後我又遇到相同的問題 一般service docker start
就可以了