Docker swarm and ec2 how to advertise an external IP address

Can I run a docker swarm spanning multiple physical networks? When I try to start a swarm on AWS ec2 instances and advertise the public IP address on docker swarm init --advertise-addr, I get an error

Error response from daemon: must specify a listening address because the address to advertise is not recognized as a system address

However, when I advertise a private IP, everything works fine. Why is this? Can't start a swarm on different subnets?

+4
source share

Source: https://habr.com/ru/post/1661909/


All Articles