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?

Dec 10, 2018 in DevOps & Agile by Shubham
• 980 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+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 \

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,390 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,280 points
+2 votes
6 answers
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
+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,390 points
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,390 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.