title: How to expose docker container's ip and port to outside docker host without port mapping?
body: <p>When i started two docker containers for a same web image on one docker host.</p>
  
  <ul>
  <li>two docker containers listened on the same port <code>5000</code></li>
  <li>port <code>5000</code> of the two containers were mapped to different ports of docker host: <code>49155</code>, <code>49156</code></li>
  <li>to access the two containers from outside docker host need to be by accessing the docker host ip and port <code>49155</code> or <code>49156</code></li>
  </ul>
  
  <p>Is there a solution to access a docker container from outside docker host by its ip and port, <code>x.x.x.x:5000</code>, without port mapping?</p>
  
  <p>All docker containers on different dock hosts can access each other directly.</p>