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
感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
新聞熱點
疑難解答
圖片精選