I would like to create a node and link the node that is addressed with its own IP address with another node which also has its own IP address.
What I did was:
IP address ending with “101” is the manager1.
IP address ending with “103” is the manager2.
docker swarm join \ > --token SWMTKN-1-498jdoqw7ne0nvcv6tcpajt7p4osuja6agni9e8kr2f1w2knys-2uxv6jhobs8f0t6lkrwnmsus3 \ > XXX.XXX.XX.101:2377 \ > --listen-addr XXX.XXX.XX.103:2377
As a result my output was:
Error response from daemon: rpc error: code = Unavailable desc = grpc: the connection is unavailable
What I would like to do is:
root@ubuntu:~# docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS
q8qrlm9jt5xc9usb0mm2rnjjd * manager2 Ready Active Leader
Add another node under the manager2, well what I’ve done is probably a mess.
Is there a for me to correct this mistake or rather add another node using:
docker swarm init …
docker swarm run …
I hope my message was clear for everyone
If not please let me know what you don’t understand from my set of instructions.