Programmers learn & share
+1 vote
43 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 | 43 views

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)  
2,187 questions
2,514 answers
59 comments
241 users