# run ping inside webhost1 to ping to webhost 2
docker container exec -it webhost ping webhost2
# create a default network named 'roundrobin'
docker network create roundrobin
# create 2 containers, both DNS named 'search', connect to roundrobin, from image 'elasticsearch' (it will have different id and names)
docker container run -d --net roundrobin --net-alias search elasticsearch
# run a container from image 'aline', remove when exit
# run on 'roundrobin' network
# execute shell: nslookup on that container, look for 'search' DNS
docker container run --rm --net roundrobin alpine nslookup search
# if you keep pinging that 'search' DNS, it will randomly use 2 containers
docker container run --rm --net roundrobin centos curl -s search:9200