title: How to access application URL hosted in docker container?
body: <p>I hosted our application inside a docker container. When I run <code>docker ps</code> command, it gave info like below.</p>
  
  <pre><code>CONTAINER ID        IMAGE                      COMMAND             CREATED             STATUS              PORTS                                                                                                                        NAMES
  6405daf98246        rdarukumalli/testapp-master   "/bin/bash"         4 hours ago         Up 4 hours          0.0.0.0:32797-&gt;443/tcp, 0.0.0.0:32796-&gt;8000/tcp, 0.0.0.0:32795-&gt;8080/tcp, 0.0.0.0:32794-&gt;8443/tcp, 0.0.0.0:32793-&gt;9997/tcp   insane_poincare
  </code></pre>
  
  <p>I am trying to access this application from my machine with the following URLs. Nothing worked so far.</p>
  
  <pre><code>0.0.0.0:32795/testapp/login.jsp
  0.0.0.0:8080/testapp/login.jsp
  localhost:8080/testapp/login.jsp
  localhost:32795/testapp/login.jsp
  </code></pre>
  
  <p>However, if i give the command <code>"curl http://localhost:8080/testapp/login.jsp"</code> inside bash of docker container, 
  I can login page html is coming.</p>
  
  <p>Can some one help me in understanding these URL mappings and what URL i need to use to access this login page outside docker container?</p>