47.8k views
2 votes
What is the command to remove a service from your swarm cluster?

A) docker service remove
B) docker remove-service
C) docker service delete
D) docker delete-service

User Vamsi Ravi
by
8.4k points

1 Answer

6 votes

Final answer:

To remove a service from a swarm cluster, the correct command is 'docker service remove'. It's used to permanently delete a service from the Docker swarm environment.

Step-by-step explanation:

The command to remove a service from your swarm cluster is A) docker service remove. This command is used when you want to permanently remove a service from your Docker swarm.

For example, if you have a service called 'my-service', you would use the command docker service rm my-service to remove it from the swarm.

User Vbranden
by
8.7k points