Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am getting error on ubuntu 16.04

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

when i run following command

sudo docker-compose up 

Can any one answer ?

like image 762
Kundan roy Avatar asked Oct 20 '16 15:10

Kundan roy


People also ask

Why is my Docker daemon not running?

Docker daemon is not running – Resolution 1: Restart Docker service. This error meant the docker daemon is unreachable. Docker daemon fails to start up on Windows or stops for some reason and especially when you try to run any commands. To fix such types of issues restarting the service will resolve the error.

How do I get Docker daemon to run?

Try to bring it up by running sudo systemctl start docker . The status should change to active (running) after the daemon starts.


1 Answers

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 
like image 79
j2emanue Avatar answered Sep 21 '22 09:09

j2emanue