I'm following the guide on
https://docs.docker.com/engine/swarm/swarm-tutorial/add-nodes/ to add a node after creating a swarm. I ran
Quote:
sudo docker swarm init --advertise-addr 35.163.93.96 --listen-addr 127.0.0.1
|
to create the swarm. Then, to try and join I ran
Quote:
sudo docker swarm join --token SWMTKN-1-4h71pkxaykm2lo5pyiu0i1675dw94zwllt5p11iswyq17gkojf-14i50r7g49nh98rd3w847d7pj
35.163.93.96:2377
|
I keep getting the same error
Quote:
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.
|
After running
I see that Swarm: pending. I have looked online, (including on SO) to find a remedy to this and nothing has worked. I tried restarting the docker service and leaving the swarm on both the manager and the worker then remaking it the swarm and restarting docker in a certain order. I tried following the tutorial on Docker's official youtube (
https://www.youtube.com/watch?v=x843GyFRIIY&index=7&list=PLkA60AVN3hh8lmRdhPKzsNJvZxJ8dpj4) where they demonstrated doing it with containers and that also did not work. I also noticed that other people who posted similar questions to this did not always get a response that worked. At this point I don't know what else to do.