Docker下Cannot connect to the Docker daemon. Is the docker daemon running on this host錯誤解決方案

發生現象:

ubuntu15下,安裝完docker後,運行docker images 報錯Cannot connect to the Docker daemon. Is the docker daemon running on this host? 如下圖

原因分析:

目前我遇到這個問題是兩個原因造成的,一個是服務沒啓動,另一個是當前用戶沒權限。

解決方案:

1.啓動服務:service docker start

2.在執行命令前加上sudo如:sudo docker images

發佈了46 篇原創文章 · 獲贊 40 · 訪問量 27萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章