I use the below command to init swarm on leader machine:
sudo docker swarm init --advertise-addr 172.19.187.96:2800 --listen-addr 172.19.187.96:2801
Swarm initialized: current node (d0xlmdxm6ew5xis1046yze7c6) is now a manager.
To add a worker to this swarm, run the following command:
docker swarm join \ --token SWMTKN-1-57yenz8gevqjr5voo8j58oswwbnojtoffdzd24p91kxbbrmxa3-arphlwto9tk9ncwj00nkv7l8h \ 172.19.187.96:2800
Then, I follow the resulted commmand to make the node join in the network. But it failed：
sudo docker swarm join --token SWMTKN-1-57yenz8gevqjr5voo8j58oswwbnojtoffdzd24p91kxbbrmxa3-arphlwto9tk9ncwj00nkv7l8h 172.19.187.96:2800
Error response from daemon: rpc error: code = 14 desc = grpc: the connection is unavailable
if I changed the port from 2800 to 2801 in the command, it is OK.
sudo docker swarm join --token SWMTKN-1-57yenz8gevqjr5voo8j58oswwbnojtoffdzd24p91kxbbrmxa3-arphlwto9tk9ncwj00nkv7l8h 172.19.187.96:2801
This node joined a swarm as a worker.
I felt the strange that the swarm init command gave a result for node join it but user could not follow the result to do it.
BTW, I found there is no processes monitor the 2800 port at that time.
is the docker bug? could some guys give some suggestion?