1.

When joining a new node to the swarm the following error occurs: “Error response from daemon: Timeout was reached before node joined.” How will you fix this?

Answer»

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:

  • Step 2: Activate the ‘manager’ machine as:

  • Step 3: Get the swarm join token as worker

  • Step 4: Connect to the worker machine say: worker2 [ To create docker node machines as worker: join node as a worker ]
Divya1@Divya:~ $docker-machine ssh worker2
  • Step 5: Run the swarm join token command; it will be SUCCESSFUL



Discussion

No Comment Found