'docker swarm init --advertise-addr when IP address randomly changes
I want to try out the docker swarm abilities.
When I run the command docker swarm init, I get the error message:
could not choose an IP address to advertise since this system has multiple addresses on different interfaces (1.1.1.1 on enp89s0 and 2.2.2.2 on eno2) - specify on with the --advertise-addr
So then I tried this the command docker swarm init --advertise-addr eno2, but this gave the error:
Error response from daemon: interface eno2 has more than one IPv6 address (1111:1111::1111:1111:1111:1111 and 2222::2222:2222:2222:2222)
I have an additional challenge which is, my IPv6 and IPv4 addresses randomly change at times. I'd prefer to run the docker swarm init with arguments that don't mention any specific ip address. Can I start docker swarm using only network interface name and/or other constant property names of my network?
And anyone know if docker swarm will be stable in the midst of changing ip addresses?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
