title: Tomcat hosted on centos:centos7 docker container, can't view webpage outside of container
body: <p>I setup a docker container which has a nat'd ip of 172.17.0.2 (from my centos virtualbox image, via nat).</p>
  
  <p>If I ssh into the container's ip (I know, bad practice) and open firefox, I can see the service hosted at 172.17.0.2:8080, but outside the container I cannot (although I can ping it).</p>
  
  <p>I initially thought it was a firewall rule, but the image doesn't even support firewall access (although the hosting vm does).</p>
  
  <p>I did a docker run  --expose=8080 to the container, and it still results in me being unable to view the webservices that is hosted on the container.</p>
  
  <p>I'd prefer to use the docker's ip for viewing the content rather than trying to forward the port through the host's ip (i.e. my virtualbox image which is a 192.168.3.x address).</p>
  
  <p>I thought this might be a firewall issue on the virtualbox image itself (vs the container).  If so, I'm confused as to how the networking works, as my docker container appears to have an nat'd ip from virtualbox's nat.</p>