I’m trying to join a swarm from my Macbook which unfortunately fails.
Below I’ll show what I have done and what the problem is
First, I create a swarm on a linux server
$> docker swarm init
Swarm initialized: current node (79d5tdeghfot3j2toba6vgvvm) is now a manager.
To add a worker to this swarm, run the following command:
docker swarm join \
--token SWMTKN-1-0zcgenpgrn0onuowpjy9dotpr4p78ku9rd7pbeg664svvrsc5t-2cxil315xwo67w9q6bkrhuo1c \
192.168.2.101:2377
To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
Now, when I run that command on my mac (both are on the same network!) I get
$> docker swarm join --token SWMTKN-1-0zcgenpgrn0onuowpjy9dotpr4p78ku9rd7pbeg664svvrsc5t-2cxil315xwo67w9q6bkrhuo1c 192.168.2.101:2377
Error response from daemon: Timeout was reached before node was joined. The attempt to join the swarm will continue in the background. Use the "docker info" command to see the current swarm status of your node.
Also, when I run netstat
on the linux server I don’t see that 2377 port being active.
I must be doing something wrong, any help would be appreciated!