1
0
mirror of https://github.com/docker/cli.git synced 2026-01-18 08:21:31 +03:00

Added missing code example in the RM command reference of command to delete all stopped containers

Signed-off-by: Natalie Parker <nparker@omnifone.com>
Upstream-commit: 886b571641
Component: cli
This commit is contained in:
Natalie Parker
2015-03-23 20:15:29 +00:00
committed by Tibor Vass
parent 75d1a0ff30
commit 5d40224f3e

View File

@@ -1661,6 +1661,8 @@ containers removing all network communication.
The main process inside the container referenced under the link `/redis` will receive
`SIGKILL`, then the container will be removed.
$ docker rm $(docker ps -a -q)
This command will delete all stopped containers. The command `docker ps
-a -q` will return all existing container IDs and pass them to the `rm`
command which will delete them. Any running containers will not be