title: Cannot connect to the Docker daemon on macOS
body: <p>I normally prefer to manage my apps on my OSX with brew</p>
  
  <p>I am able to install docker, docker-compose and docker-machine</p>
  
  <pre><code>docker --version
  Docker version 17.05.0-ce, build 89658be
  docker-compose --version
  docker-compose version 1.13.0, build unknown
  docker-machine --version
  docker-machine version 0.11.0, build 5b27455
  </code></pre>
  
  <p>I did not download and run 'Docker for Mac' app.</p>
  
  <p>However when I try to run</p>
  
  <pre><code>&gt; docker run -d -p 80:80 --name webserver nginx
  docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
  See 'docker run --help'.
  </code></pre>
  
  <p>I have already checked the sock file</p>
  
  <pre><code>ls -lah /var/run/docker.sock /var/tmp/docker.sock
  ls: /var/run/docker.sock: No such file or directory
  ls: /var/tmp/docker.sock: No such file or directory
  </code></pre>
  
  <p>I have also tried this proposed solution: <a href="https://stackoverflow.com/questions/36193300/mac-os-x-sudo-docker-cannot-connect-to-the-docker-daemon-is-the-docker-daemon-r">Mac OS X sudo docker Cannot connect to the Docker daemon. Is the docker daemon running on this host?</a></p>
  
  <p>But I got this error message:</p>
  
  <pre><code>$ eval $(docker-machine env default)
  Host does not exist: "default"
  </code></pre>
  
  <p>Is it possible to get a docker service to run by command line tools?</p>