title: Unable to connect localhost in docker
body: <p>I run the images in docker terminal:</p>
  
  <pre><code>docker run -p 4000:80 friendlyhello
  </code></pre>
  
  <p>Localhost does not connect and display images.</p>
  
  <blockquote>
    <p>This site can’t be reached<br>
    localhost refused to connect.<br>
     - Did you mean <a href="http://localhost4000.org/" rel="noreferrer">http://localhost4000.org/</a>?<br>
     - Search Google for localhost 4000<br>
    ERR_CONNECTION_REFUSED</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/AD7Mo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AD7Mo.png" alt="This site can’t be reached"></a></p>