• Register
Welcome to Kodlogs, programming questions and answer website.
+1 vote
19 views

Problem :

Facing the weird following issue

cannot connect to the docker daemon at unix:///var/run/docker.sock. is the docker daemon running?

by (6.9k points)  
edited by

1 Answer

0 votes

Solution :

1. Running Docker on OS X : running the following eval has worked for me.

eval "$(docker-machine env default)"
2 If you do not want to run this eval statement on every terminal session then you can add this to your bash_profile:
#Docker
eval "$(docker-machine env default)"

3. Please make sure to restart the terminal session or run source on bash_profile for the changes to take effect.

by (36.1k points)  
...