title: Docker for Mac nginx example doesn't run
body: <p>Mac 10.11.5 here. I am specifically trying to install <strong>Docker for Mac</strong> (<em>not</em> Docker Toolbox or any other offering). I followed all the instructions on their <a href="https://docs.docker.com/docker-for-mac/" rel="nofollow noreferrer">Installation page</a>, and everything was going fine until they ask you to try running an nginx server (<em>Step 3. Explore the application and run examples</em>).</p>
  
  <p>Running <code>docker run hello-world</code> worked beautifully with no problems at all. I was able to see the correct console output that was expected for that image.</p>
  
  <p><strong>However</strong>, they then ask you to try running an nginx instance:</p>
  
  <pre><code>docker run -d -p 80:80 --name webserver nginx
  </code></pre>
  
  <p>I ran this, and got no errors. Console output was expected:</p>
  
  <pre><code>Unable to find image 'nginx:latest' locally latest: Pulling from library/nginx
  51f5c6a04d83: Pull complete 
  a3ed95caeb02: Pull complete 
  51d229e136d0: Pull complete 
  bcd41daec8cc: Pull complete 
  Digest: sha256:0fe6413f3e30fcc5920bc8fa769280975b10b1c26721de956e1428b9e2f29d04
  Status: Downloaded newer image for nginx:latest
  ae8ee4595f47e7057e527342783d035b224afd17327b057331529e2820fe2b61
  </code></pre>
  
  <p>So then I ran <code>docker ps</code>:</p>
  
  <pre><code>CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                         NAMES
  ae8ee4595f47        nginx               "nginx -g 'daemon off"   12 seconds ago      Up 10 seconds       0.0.0.0:80-&gt;80/tcp, 443/tcp   webserver
  </code></pre>
  
  <p>So far so good. But then I open up my browser and point it to <code>http://localhost</code> and I get (in Chrome):</p>
  
  <p><a href="https://i.stack.imgur.com/TCDjV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TCDjV.png" alt="enter image description here"></a></p>
  
  <p>Any ideas where I'm going awry? I waited 5 mins just to give nginx/docker ample time to start up, but that doesn't change anything.</p>
  
  <hr>
  
  <p>For tracking purposes, the related GitHub issue:</p>
  
  <p><a href="https://github.com/docker/for-mac/issues/393" rel="nofollow noreferrer">https://github.com/docker/for-mac/issues/393</a></p>