LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 01-10-2017, 12:50 AM   #1
johnpedou
LQ Newbie
 
Registered: Dec 2016
Posts: 17

Rep: Reputation: Disabled
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.

Last edited by johnpedou; 01-10-2017 at 12:53 AM.
 
Old 01-10-2017, 07:12 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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.
 
Old 01-10-2017, 11:33 PM   #3
johnpedou
LQ Newbie
 
Registered: Dec 2016
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thanks for the help. It turned out to be that and a bunch of other stuff I needed to do with AWS CLI
 
Old 01-11-2017, 11:11 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

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

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Using Docker Swarm mode on OpenPOWER servers LXer Syndicated Linux News 0 12-24-2016 09:18 AM
LXer: Docker 1.12.2 App Container Engine Brings Swarm Mode and Networking Improvements LXer Syndicated Linux News 0 10-17-2016 06:44 PM
LXer: Using Docker Swarm in Production LXer Syndicated Linux News 0 02-22-2016 10:42 AM
LXer: Set up Two Node RDO Juno ML2&OVS&VXLAN Cluster runnig Docker Hypervisor on Compute Node LXer Syndicated Linux News 0 02-07-2015 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration