Search code examples
macosubuntudockerboot2docker

Docker error dial unix /var/run/docker.sock: no such file or directory


I use to have boot2docker installed but recently installed the Docker ToolBox app for the Mac (running 10.11). When I open up iTerm and type docker ps I get the following message.

Get http:///var/run/docker.sock/v1.20/containers/json: 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?

I use to use boot2docker so I assumed the ToolBox is now needed. I started the app Docker quick start terminal which works only inside their terminal. However, I want to use docker in my own terminal etc.

Why do I get this error? How to fix?


Solution

  • It can depend on the shell you are using (for instance, fish shell would only be supported in docker toolbox 1.8.2a)

    Issue 138 tried:

    1. Deleted anything in the system that mentions docker.
    2. Installed toolbox 1.8.1c.
    3. Ran the Docker Quickstart Terminal (which failed).
    4. Deleted ~/.docker
    5. Installed docker using

    Check also the permission on ~/.docker.