title: How to run local server in host?
body: <p>I've just installed nodejs using docker, and I run a test server:</p>
  
  <pre><code>docker exec -i -t my-running-app bash
  root@46593eb5df5c:/usr/src/app# npm start
  npm info it worked if it ends with ok
  npm info using npm@2.15.1
  npm info using node@v4.4.3
  npm info prestart foo@
  npm info start foo@
  
  &gt; foo@ start /usr/src/app
  &gt; node server.js
  
  Server running at http://127.0.0.1:8000/
  </code></pre>
  
  <p>In the docker image, I am exposing port 8000, but I don't know how would I browse into the node server inside container from the host?</p>
  
  <p>if I just browse to <a href="http://127.0.0.1:8000/" rel="nofollow">http://127.0.0.1:8000/</a> I get:</p>
  
  <pre><code>This site can’t be reached
  
  127.0.0.1 refused to connect.
  </code></pre>
  
  <p>I am on ubuntu 14.04, so, how would I view that deckorized server?</p>