MacOS Docker Installation problems?

If after a docker installation on your mac you are getting something like:

Get http:///var/run/docker.sock/v1.20/version: dial unix /var/run/docker.sock: no such file or directory.
* Are you trying to connect to a TLS-enabled daemon without TLS?
* Is your docker daemon up and running?

You came to the right place.

If you follow the steps from official tutorial on how to install docker on Mac, you will come to a point where you can’t run docker. It took me a good chunk of time to find the solution so I’ve decided to write this short post on it. I hope it will be fixed soon as for this issue – but for now you will need to follow these 3 steps:

  1. Finish all the steps of the Docker Toolbox installation program. Don’t worry if you are getting any errors.
  2. Remove the .docker directory:
    $rm -rf /Users/YOUR_NAME/.docker
    make sure to change YOUR_NAME with your current user name.
  3. Restart the Docker Quick start Terminal from Applications.
    It will recreate the .docker directory with the correct user and permissions.
  4. Try now to type: docker run hello-world

Screen Shot 2015-10-28 at 11.45.36 AMGood luck!



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s