Ubuntu 16.04 - > ERROR: Couldn't connect to Docker daemon - you might need to run `docker-machine start default`

前端 未结 15 2232
北恋
北恋 2021-02-03 17:48

I am getting error on ubuntu 16.04

\"ERROR: Couldn\'t connect to Docker daemon - you might need to run docker- machine start default. \"

15条回答
  •  爱一瞬间的悲伤
    2021-02-03 17:56

    assuming your environment variables are set using the following shell command :

    eval "$(docker-machine env default)"
    

    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
    

提交回复
热议问题