title: How to access container's web application from host
body: <p>I am running a site inside Docker container which exports following
  https://172.17.0.2:8443/admin/  &amp;
  http://172.17.0.2:8463/users/</p>
  
  <pre><code>$ docker run -it -d --expose=8000-9900 ubuntu-java8-webapp
  bf193d011fd8....
  </code></pre>
  
  <p><strong>Docker PS cmd</strong></p>
  
  <pre><code>$ docker ps -a
  CONTAINER ID   IMAGE       COMMAND      PORTS          NAMES
  bf193d011fd8   ubuntu-.... "/bin/bash"  8000-9900/tcp  desperate_mclean
  </code></pre>
  
  <p><strong>Docker ls cmd</strong></p>
  
  <pre><code>$ docker-machine ls    
  NAME      ACTIVE   DRIVER       STATE     URL          DOCKER    ERRORS
  default   *        virtualbox   Running   tcp://192.168.99.100:2376           v1.10.3
  </code></pre>
  
  <p><strong>Docker machine ip cmd</strong></p>
  
  <pre><code>$ docker-machine ip default
  192.168.99.100
  </code></pre>
  
  <p>How do I access the site? Just in case it matters, I am running docker on Mac here.</p>