How to create a Docker swarm in Linux system

0 votes

Hi Team,

I am new to Docker Technology. I want to create a Swarm node. How can I create that?

Dec 24, 2020 in Docker by akhtar
• 38,260 points
645 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to initialize one node with the docker swarm init command.

$ docker swarm init --advertise-addr 172.31.11.98
Swarm initialized: current node (v99wt041ykw5v9rfkktp7fuhy) is now a manager.
To add a worker to this swarm, run the following command:
    docker swarm join --token SWMTKN-1-139c334qwzd17r47hrnd33m7g3xfg8o0gyl1rgkxkliq8kq2ov-bf2inz84bhwbdzp9ddvxrbfoi 172.31.11.98:2377
To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
answered Dec 24, 2020 by MD
• 95,460 points

Related Questions In Docker

0 votes
1 answer

How to create a container and run images in docker?

Look for what all images you have ...READ MORE

answered Feb 23, 2019 in Docker by Kalgi
• 52,350 points
2,255 views
0 votes
1 answer

How to create a user-defined Bridge network in docker?

To create a user-defined bridge network, one ...READ MORE

answered Jul 3, 2019 in Docker by Sirajul
• 59,230 points
2,711 views
0 votes
1 answer

How to create an overlay network in Docker swarm?

Hi@akhtar, To create an overlay network for use ...READ MORE

answered Dec 28, 2020 in Docker by MD
• 95,460 points
773 views
0 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,739 views
0 votes
1 answer

How to create a service in Docker swarm?

Hi@akhtar, To create a service in Docker swarm, ...READ MORE

answered Dec 24, 2020 in Docker by MD
• 95,460 points
599 views
0 votes
1 answer

How to create a secret in docker?

Hi@akhtar, In Docker, a secret is any blob ...READ MORE

answered Aug 17, 2020 in Docker by MD
• 95,460 points
730 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP