参考链接:
https://segmentfault.com/q/1010000005040763
一、
因为,我忘记启动docker这个服务了。
service docker start
二、
You need to add user into docker group. by ’ sudo gpasswd-a xxxx docker’(xxx is your user name)
Then restart your computer.
This problem should be solved.
docker默认只允许root用户连接,想用其他用户需要添加。
三
docker-machine restart&&eva"$(docker-machine env default)"&&docker-machine env
运行这么一串
就好了