title: Correct way to start docker daemon listening to specific port
body: <p>I´m new to docker and want to start it in daemon mode listening to a specific IP-adress and port. In the <a href="https://docs.docker.com/reference/commandline/daemon/" rel="noreferrer">documentation</a> it is said that this can be done by writing <code>sudo /usr/bin/docker daemon -H 0.0.0.0:5555</code>. It then says that I can list running containers with this command <code>docker ps</code>. If I try this I get the following message: </p>
  
  <blockquote>
    <p>Get <a href="http:///var/run/docker.sock/v1.20/containers/json?all=1" rel="noreferrer">http:///var/run/docker.sock/v1.20/containers/json?all=1</a>: dial unix /var/run/docker.sock: no such file or directory.</p>
    
    <ul>
    <li>Are you trying to connect to a TLS-enabled daemon without TLS?</li>
    <li>Is your docker daemon up and running?</li>
    </ul>
  </blockquote>
  
  <p>I cannot interact with it. I´ve searched for a solution but with no luck. Any suggestions?</p>
  
  <p>P.S. How can I run this daemon in background? I tried appending an &amp; but I´m stuck on the ouput till pressing ctrl+c.</p>
  
  <p>Thanks in advance</p>