How to add a node as a manager in swarm cluster?

+1 vote
I am having a swarm cluster in which I have connected four machines as a worker and one machine as a Manager. I want to make my cluster highly available for which I have to add more managers to my cluster.

I don't know how to achieve that. Can anyone tell that if there is a possible way to join the node as a manager in my cluster?

Can anyone resolve my query?

Thanks.
Dec 10, 2018 in DevOps & Agile by Shubham
• 1,000 points
66 views

1 answer to this question.

+1 vote

Here is what you can try and your work will be done.

Use the command mentioned below to generate a token.

docker swarm join-token manager

This will generate a token for you which you have to copy and paste on those machines which is to be added as Swarm manager.

 docker swarm join \
    --token SWMTKN-1-61ztec5kyafptydic6jfc1i33t37flcl4nuipzcusor96k7kby-5vy9t8u35tuqm7vh67lrz9xp6 \
    192.168.99.100:2377

By pasting this token over those machine, you'll be able to add them as manager.

I hope the above information will resolve your query. 

answered Dec 10, 2018 by Damon Salvatore
• 5,510 points

Related Questions In DevOps & Agile

0 votes
1 answer

How to a run deployed app in Docker for Windows?

To deploy an ASP.NET web application to ...READ MORE

answered Aug 29, 2018 in DevOps & Agile by Tyrion anex
• 8,310 points
129 views
+2 votes
6 answers

How to add a volume to Docker, but also exclude a sub-folder?

Here is what you can try if ...READ MORE

answered Nov 21, 2018 in DevOps & Agile by Shubham
• 1,000 points
3,616 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,072 views
+4 votes
1 answer

How to orchestrate a multi-tier web-app over swarm cluster ?

I understand from your query that you ...READ MORE

answered Dec 11, 2018 in DevOps & Agile by Damon Salvatore
• 5,510 points
62 views
0 votes
1 answer

How to give a name to an image in Dockerfile ?

This needs to be done in your ...READ MORE

answered Nov 16, 2018 in DevOps & Agile by Damon Salvatore
• 5,510 points
117 views