title: Accessing apache2 residing inside Docker container from Host machine web browser
body: <p>I have been creating a webserver as Docker container and trying to access it outside the container. But I can't. What I am doing is.</p>
  
  <p>-Pulling a ubuntu image:</p>
  
  <pre><code>docker pull ubuntu:14.04
  </code></pre>
  
  <p>-Starting a container:</p>
  
  <pre><code>docker -t -i -p 49200:2375 [image-id]
  </code></pre>
  
  <p>and after installing apache2 in newly started container I can ping the apache2 server inside container, I can also do curl and see results in container terminal, but no luck outside on host machine. I have tried many times. (I am using Virtual Box on windows)</p>
  
  <p>Screen shots:</p>
  
  <p><img src="https://content.screencast.com/users/husnainafzal/folders/Jing/media/a8c67879-15c9-431b-b61d-ecb535bd9a11/2014-07-26_1330.png" alt="docker 1"></p>
  
  <p><img src="https://content.screencast.com/users/husnainafzal/folders/Jing/media/eed18e0a-6bfd-4132-a4a1-ce4fc393c39b/2014-07-26_1333.png" alt="docker 2"></p>
  
  <p>Questions:</p>
  
  <ol>
  <li>Am I using right docker commands and port numbers to create container.</li>
  <li>Is there anything wrong in apache configuration. (I am using apache in default mode without any configurations)</li>
  <li>Is there anything wrong with ports on my virtual box or on my pc. I have very low knowledge of networking. </li>
  </ol>
  
  <p>Can someone help!!!</p>