Docker-Docs/_data/engine-cli/docker_service_rm.yaml

40 lines
879 B
YAML
Raw Normal View History

2020-11-18 13:32:27 -05:00
command: docker service rm
aliases: remove
short: Remove one or more services
long: |-
Removes the specified services from the swarm.
> **Note**
>
> This is a cluster management command, and must be executed on a swarm
> manager node. To learn about managers and workers, refer to the
> [Swarm mode section](https://docs.docker.com/engine/swarm/) in the
> documentation.
usage: docker service rm SERVICE [SERVICE...]
pname: docker service
plink: docker_service.yaml
examples: |-
Remove the `redis` service:
```bash
$ docker service rm redis
redis
$ docker service ls
ID NAME MODE REPLICAS IMAGE
```
> **Warning**
>
> Unlike `docker rm`, this command does not ask for confirmation before removing
> a running service.
deprecated: false
min_api_version: "1.24"
experimental: false
experimentalcli: false
kubernetes: false
swarm: true