title: Am I trying to connect to a TLS-enabled daemon without TLS?
body: <p>I'm trying to learn about <a href="https://www.docker.com/" rel="noreferrer">Docker</a>, but I keep getting cryptic (to me) error messages.</p>
  
  <p>Possibly the simplest example of this is trying to print the version of Docker I installed:</p>
  
  <pre><code>$ sudo docker version
  Client version: 1.4.1
  Client API version: 1.16
  Go version (client): go1.3.3
  Git commit (client): 5bc2ff8
  OS/Arch (client): darwin/amd64
  FATA[0000] Get http:///var/run/docker.sock/v1.16/version:
      dial unix /var/run/docker.sock: no such file or directory.
      Are you trying to connect to a TLS-enabled daemon without TLS?
  </code></pre>
  
  <p>I've just been going through the <a href="https://docs.docker.com/userguide/" rel="noreferrer">user guide</a> and following every step exactly, so I'm surprised that I get this message... What should I do now?</p>
  
  <p>I just noticed that if I don't use <code>sudo</code> I don't get the error:</p>
  
  <pre><code>$ docker version
  Client version: 1.4.1
  Client API version: 1.16
  Go version (client): go1.3.3
  Git commit (client): 5bc2ff8
  OS/Arch (client): darwin/amd64
  Server version: 1.4.1
  Server API version: 1.16
  Go version (server): go1.3.3
  Git commit (server): 5bc2ff8
  </code></pre>
  
  <p>Of course, this is not a solution as I may need to use <code>sudo</code> somewhere down the road...</p>
  
  <p>I just found <a href="http://docs.docker.com/articles/basics/" rel="noreferrer">another page</a> saying "<strong>If you're using OS X</strong> then you shouldn't use <code>sudo</code>." I don't know if they mean only for that example, or in general.</p>