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,260 points
595 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,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,252 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,710 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
771 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,460 points
2,483 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
3,983 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,460 points
643 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