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,180 points
73 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,220 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 22,668 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,550 points
1,972 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
1,553 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,220 points
727 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,220 points
373 views