How to delete services from Docker swarm cluster

0 votes
Hi Guys,

I have created some services in the Docker swarm cluster. But some of the services are not working properly. I want to delete those from the cluster. How to do that?
Dec 24, 2020 in Docker by akhtar
• 38,260 points
1,909 views

1 answer to this question.

0 votes

Hi@akhtar,

You can delete your services with the docker service rm command as shown below.

$ docker service rm service_name
answered Dec 24, 2020 by MD
• 95,460 points

Related Questions In Docker

+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,220 points

edited Oct 16, 2018 by lina 33,965 views
0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 10,620 points
3,447 views
0 votes
2 answers
0 votes
1 answer
+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,788 views
0 votes
1 answer

How to remove a worker node from the docker swarm cluster?

Hi@akhtar, To remove a worker node from the ...READ MORE

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

How to make a port available to services outside of Docker?

Hi@akhtar, By default docker containers works in a ...READ MORE

answered May 5, 2020 in Docker by MD
• 95,460 points
2,313 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