title: Can not ping docker container from another host which is in the same LAN
body: <p>I have two hosts, in the same LAN, both running docker:</p>
  
  <ul>
  <li>Host A: 172.16.0.113</li>
  <li>Host B: 172.16.0.114</li>
  </ul>
  
  <p>I can ping host A from host B. But, I can not ping a docker container on host A from host B.</p>
  
  <p>I created a docker container running ubuntu, in the docker default network (bridge). The default docker0's IP address is 172.17.0.1. And the IP address of the container (ubuntu) in the host (172.16.0.113) is 172.17.0.2. The command I used is here:</p>
  
  <pre><code>sudo docker run --name container01 -it -p 8080:80 ubuntu /bin/bash
  </code></pre>
  
  <p>I can ping container01 from its host, host A; but I can not ping container01 from the other host, host B. Note that I have exposed the port of container01.</p>
  
  <p>I think when I ping container01 from the host B, packets are sent to a container in that host. But I want to know how to connect to host A's container01 from host B.</p>