docker service rm
| Description | Remove one or more services |
|---|---|
| Usage | docker service rm SERVICE [SERVICE...] |
| Aliases | docker service remove |
Swarm This command works with the Swarm orchestrator.
Description
Removes the specified services from the swarm.
Note
Examples
Remove the redis service:
$ docker service rm redis
redis
$ docker service ls
ID NAME MODE REPLICAS IMAGE
WarningUnlike
docker rm, this command does not ask for confirmation before removing a running service.