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 in Docker by Kim
170 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 by Sirajul
• 36,220 points

Related Questions In Docker

0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 9,850 points
396 views
0 votes
1 answer

How to obtain the Docker container's IP address from the host?

This can be done by executing the ...READ MORE

answered Jul 16, 2018 in Docker by Sophie may
• 9,850 points
833 views
0 votes
1 answer

Where is the Docker daemon log?

It depends on your OS. Here are ...READ MORE

answered Jul 18, 2018 in Docker by Kalgi
• 2,620 points
605 views
0 votes
1 answer

Docker, how to get container information from within the container?

I've found out that the container id ...READ MORE

answered Jul 31, 2018 in Docker by Kalgi
• 41,990 points
68 views
0 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,032 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 in Docker by Sirajul
• 36,220 points
2,024 views