發生現象:
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