Files
docker-cli/components/engine/docs/reference/commandline/service_rm.md
Sebastiaan van Stijn 6200f441cd Add initial "service" docs
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: f565bc7ec964537a4e20bf5d4e497d15c0c9b5bf
Component: engine
2016-06-17 17:28:24 -07:00

1.1 KiB

Warning: this command is part of the Swarm management feature introduced in Docker 1.12, and might be subject to non backward-compatible changes.

service rm

Usage:	docker service rm [OPTIONS] SERVICE

Remove a service

Aliases:
  rm, remove

Options:
      --help   Print usage

Removes the specified services from the swarm. This command has to be run targeting a manager node.

For example, to remove the redis service:

$ docker service rm redis
redis
$ docker service ls
ID            NAME   SCALE  IMAGE        COMMAND

Warning

: Unlike docker rm, this command does not ask for confirmation before removing a running service.