title: Docker on Mac: Can't view ports
body: <p>I'm running boot2docker on Yosemite. I have no trouble creating containers and using them in boot2docker. I also can successfully connect via http to the docker daemon running in boot2docker's vm. However, when I create a container with Revel and start Revel up, I cannot connect to Revel's port 9000 from my browser.</p>
  
  <p>I was following this approach: <a href="http://www.medding.me/blog/2014/09/06/setting-up-a-docker-environment-for-golang-development-part-1/" rel="nofollow noreferrer">http://www.medding.me/blog/2014/09/06/setting-up-a-docker-environment-for-golang-development-part-1/</a></p>
  
  <p>Here's the running Revel server:</p>
  
  <pre><code>INFO  2015/05/07 20:19:00 revel.go:329: Loaded module static
  INFO  2015/05/07 20:19:00 revel.go:329: Loaded module testrunner
  INFO  2015/05/07 20:19:00 revel.go:206: Initialized Revel v0.12.0 (2015-03-25) for &gt;= go1.3
  INFO  2015/05/07 20:19:00 run.go:57: Running revel3 (alexed1/revel3) in dev mode
  INFO  2015/05/07 20:19:00 harness.go:165: Listening on :9000
  </code></pre>
  
  <p>When I connect to 192.168.59.103:9000 with a browser, I get <code>ERR_CONNECTION_REFUSED</code>.</p>
  
  <p>I've tried a couple of different things:</p>
  
  <ol>
  <li>The dockerfile has EXPOSE(9000) in it;</li>
  <li>The VirtualBox client has been configured this way:
  <a href="http://screencast.com/t/KiRdimWVnwqS" rel="nofollow noreferrer">http://screencast.com/t/KiRdimWVnwqS</a> in accordance with the direction of <a href="http://odewahn.github.io/docker-jumpstart/boot2docker.html" rel="nofollow noreferrer">http://odewahn.github.io/docker-jumpstart/boot2docker.html</a>. I've tried using both localhost and 127.0.0.1 for the host value. </li>
  </ol>
  
  <p>As you can see, no port information shows up on the running container:</p>
  
  <p><img src="https://content.screencast.com/users/alexed11/folders/Jing/media/3630e137-3549-4945-84f7-700da54e1091/00000094.png" alt=""></p>