浏览代码

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

Signed-off-by: Natalie Parker <nparker@omnifone.com>
Natalie Parker 10 年之前
父节点
当前提交
fe1f5ac77c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      docs/sources/reference/commandline/cli.md

+ 2 - 0
docs/sources/reference/commandline/cli.md

@@ -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