Docker container access to swarm IPs
When running docker containers a swarm cluster do the containers have access to all the IPs of the cluster nodes via ENV variables or otherwise?
I want to run an Elasticsearch instance on each node in my swarm the cluster. And they will discovery each other in unicast mode. Therefore each Elasticsearch instanc needs to be configured with the list of IPs in the cluster.
One Solution collect form web for “Docker container access to swarm IPs”
If you mean that container of one node can access container’s IP of other node , then it is not possible . You have to use weave tool to connect container across different node or other tool .