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,170 points
70 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,160 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 22, 2019 in Docker by Kalgi
• 52,310 points
563 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,050 points
1,408 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,160 points
68 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,120 points
1,143 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,160 points
48 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,160 points
167 views