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用戶可以運行
