本文介绍了Ubuntu 16.04->错误:无法连接到Docker守护程序-您可能需要运行`docker-machine start default`。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在ubuntu 16.04上报错
I am getting error on ubuntu 16.04
当我运行以下命令时
sudo docker-compose up
任何人都可以回答吗?
推荐答案
假设使用以下shell命令设置了环境变量:
assuming your environment variables are set using the following shell command :
eval "$(docker-machine env default)"
然后您可以通过运行以下shell命令找到确切的错误:
then you can find the exact error by running the following shell command:
docker-compose --verbose up -d
许多次是代理问题,或者如果您运行如果使用代理,则可以将其添加到您的个人资料:
many times its a proxy issue or if your running it with charles proxy it can block compose from connecting etc. if it is a proxy issue you can add this to your profile:
export no_proxy=192.168.99.100
这篇关于Ubuntu 16.04->错误:无法连接到Docker守护程序-您可能需要运行`docker-machine start default`。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!