How to create a service in Docker swarm

0 votes

Hi Team,

I have configured one Docker swarm cluster. Now I want to create one service. How to do that?

Dec 24, 2020 in Docker by akhtar
• 38,170 points
30 views

1 answer to this question.

0 votes

Hi@akhtar,

To create a service in Docker swarm, you can find one command named docker service create. It will create a service in the swarm.

$ docker service create -p 80:80 --name web 
nginxctolq1t4h2o859t69j9pptyye

answered Dec 24, 2020 by MD
• 95,040 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
479 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
• 58,990 points
1,348 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,040 points
51 views
0 votes
1 answer

How to rename docker service in swarm?

Hi@akhtar, You can run the docker service update ...READ MORE

answered Dec 28, 2020 in Docker by MD
• 95,040 points
102 views
+2 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,459 views
0 votes
1 answer

How to create a Docker swarm in Linux system?

Hi@akhtar, You need to initialize one node with ...READ MORE

answered Dec 24, 2020 in Docker by MD
• 95,040 points
51 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,040 points
122 views