title: reading IP address of a host machine inside a docker container
body: <p>Is there a way to know the IP address of a CentOS host machine inside the docker container inside which the container is running? Like say if I have a linux machine 10.10.10.10 IP that has docker container1 and container2 running, I would want to query the IP from my java code. The Java code is inside the docker container. I am actually running these services as a docker swarm.</p>