I am building a hadoop based image using docker-compose. I plan to deploy them on a single docker host without using swarm.
I am able to do ssh between containers using ip address. I want to do it through host name.
How to make it. please note that I am not using any static ip address.
how to make dynamic ip entries of each containers into /etc/hosts of all containers.