LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Containers (https://www.linuxquestions.org/questions/linux-containers-122/)
-   -   Error Adding a node to Docker Swarm (https://www.linuxquestions.org/questions/linux-containers-122/error-adding-a-node-to-docker-swarm-4175597132/)

johnpedou 01-10-2017 12:50 AM

Error Adding a node to Docker Swarm
 
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
Quote:

sudo docker info
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.

Habitual 01-10-2017 07:12 PM

SecurityGroup for the instance. Port needs to be opened.
https://docs.aws.amazon.com/AWSEC2/l...ecurity-groups
https://docs.aws.amazon.com/AWSEC2/l...ity-group-rule

Good Luck.

johnpedou 01-10-2017 11:33 PM

Thanks for the help. It turned out to be that and a bunch of other stuff I needed to do with AWS CLI

Habitual 01-11-2017 11:11 AM

I love aws-cli
SecGroup is the front-line of your defense in AWS.

What else is baking your banana?
I know a little.


All times are GMT -5. The time now is 04:52 AM.