Cannot connect to the Docker daemon. Is 'docker daemon' running on this host?


if first time to install docker, be noted the docker engine started as root

copied from: http://blog.163.com/s2006203387@126/blog/static/533199572015111703735423/

Ubuntu 14.04
第一次安裝Docker,運行hello-world 是可以的,
重啟系統之后,運行hello-world 出現如下報錯:
 
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
 
 
多方查找,解決如下:
sudo su -                       //切換到root
service docker start      //啟動docker service
docker images              //顯示所有images
docker run hello-world  //重新運行
 
恩,是權限問題,當前用戶沒權限,root用戶可以運行 初次安裝Docker 運行出現的問題。 - 牛牛 - 牛牛的博客


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM