Docker Desktop is running on two physical machines. One is the master and once is the node in swarm mode.
Step 1: Init swarm on Master:
docker swarm init --advertise-addr 192.168.35.5 --listen-addr 127.0.0.1:2377
- Result:
`docker swarm join --token SWMTKN-1-19usewy41ourkf7n9ykcz74typzv8pripgyty4rces2iwu25mm-60usnt70eyq3x2ct0rpm0bakb 192.168.35.5:2377`
Step 2: join node to master:
docker swarm join --token SWMTKN-1-19usewy41ourkf7n9ykcz74typzv8pripgyty4rces2iwu25mm-60usnt70eyq3x2ct0rpm0bakb 192.168.35.5:2377
- Result:
Swarm: error
NodeID:
Error: rpc error: code = DeadlineExceeded desc = context deadline exceeded
Is Manager: false
The firewall is turned off and two machines are on a LAN.
Run the command on the master node. But there is not any service running on port 2377:
telnet 192.168.35.5 2377
Result:
Connecting To 10.1.119.70...Could not open connection to the host, on port 2377: Connect failed
Please show me how to join a node to the master node in the Docker swarm?