Docker: Error response from daemon: timeout was reached before the node joined

0 votes

When joining a new node to the swarm i get the error:

Error response from daemon: timeout was reached before the node joined

How do i fix this error?

Aug 28, 2019 in Docker by Kim
1,655 views

1 answer to this question.

0 votes

The above failure happens when the ‘manager’ docker machine is not active; as a result, the new node machine will not be able to join the swarm cluster.

To fix this:

Step 1: Check for the active machine hosts as:

$ docker-machine active

Step 2: Activate the ‘manager’ machine as:

$ eval $(docker-machine env manager)
$ docker-machine active

Step 3: Get the swarm join token as worker

$docker swarm join-token worker

Step 4: Connect to the worker machine say: worker2 [ To create docker node machines as worker: join node as a worker ]

$docker-machine ssh worker2

Step 5: Run the swarm join token command; it will be successful.

answered Aug 28, 2019 by Sirajul
• 57,940 points

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer

docker: Error response from daemon: No volume store named (default) exists.

Hi@akhtar, By default, vic-machine create does not create ...READ MORE

answered Apr 8 in Docker by MD
• 57,300 points
131 views
+2 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
1,325 views
0 votes
2 answers
0 votes
2 answers

How do I fix the “no space left on device” error in docker?

Try cleaning up: $ docker volume rm $(docker ...READ MORE

answered Aug 14, 2019 in Docker by Sirajul
• 57,940 points
6,823 views