title: Networking with Docker on Windows
body: <p>I used this official guide to set up Docker on a Windows 7 machine:</p>
  
  <p><a href="https://docs.docker.com/windows/started/" rel="noreferrer">https://docs.docker.com/windows/started/</a></p>
  
  <p>I successfully pulled an image from the docker hub and I can run my own docker image.</p>
  
  <p>No I am stuck trying to run and access a webserver with docker on Windows. Apparently, behind <code>boot2docker</code> I can't reach my docker container the way I was used to.</p>
  
  <p>Once I added <code>-p 3007:80</code> to the <code>docker run</code> command, the port forwarding showed up in the container list (<code>docker ps</code>) as <code>0.0.0.0:3007 -&gt; 80</code>. And with <code>-p 127.0.0.1:3007:80</code> I get a more meaningful ip address. I cannot, however, reach the container with a browser on the Windows host.</p>
  
  <p>Moreover, <code>docker inspect</code> does not reveal an ip address for the running container (which also seems wrong).</p>
  
  <p>I also tried <code>--net=host</code> to no avail.</p>