“Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

docker本身已安裝正常,當執行docker images命令時,出現:

“Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?”

問題原因: 因爲docker服務沒有啓動,所以在相應的/var/run/ 路徑下找不到docker的進程

執行 service docker start |systemctl start docker 命令,啓動docker服務,返回:

Redirecting to /bin/systemctl start docker.service

此時進程啓動成功,再執行docker images,問題解決!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章