title: nginx not accessible outside of Docker container
body: <p>This has to be a simple problem. I'm using boot2docker. If I ssh into boot2docker:</p>
  
  <pre><code>docker@boot2docker:~$ docker ps
  CONTAINER ID        IMAGE                         COMMAND              CREATED             STATUS              PORTS                          NAMES
  89ec1492d7c7        mycontainer:latest   "/bin/sh -c nginx"   35 seconds ago      Up 35 seconds       80/tcp, 0.0.0.0:80-&gt;1000/tcp   desperate_mestorf
  </code></pre>
  
  <p>Then curl:</p>
  
  <pre><code>docker@boot2docker:~$ curl localhost:1000 curl: (7) Failed connect to
  localhost:1000; Connection refused 
  docker@boot2docker:~$ curl
  localhost:80 curl: (56) Recv failure: Connection reset by peer
  </code></pre>
  
  <p>Curl'd on port 80 just to make sure I'm not going crazy. Then I connect to my containers bash:</p>
  
  <pre><code>docker@boot2docker:~$ docker exec -i -t 89ec1492d7c7 bash
  root@89ec1492d7c7:/srv/www# curl localhost
  &lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;&lt;link rel="stylesheet" href="/main.css"&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Welcome to Harp.&lt;/h1&gt;&lt;h3&gt;This is yours to own. Enjoy.&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;root
  </code></pre>
  
  <p>Boom! It works, even tried this while leaving the default port 80. What's really weird is I have other containers on my box that I can get to. Even outside of my boot2docker VM (which I'm only using to take one more thing out of the equation). This must be simple right?</p>