Advisory: This site contains documentation for the v1.12 release candidate version of Docker Engine. For the Docker Engine v1.11 docs, see Docker for Mac and Docker for Windows are currently in Beta.

service rm

Usage:	docker service rm [OPTIONS] SERVICE

Remove a service

  rm, remove

      --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
$ docker service ls
ID            NAME   SCALE  IMAGE        COMMAND

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