From d3d3328fa195ca4d62e638c211b278ad9b0bdf3e Mon Sep 17 00:00:00 2001 From: Zhang Wei Date: Thu, 9 Jun 2016 23:32:20 +0800 Subject: [PATCH] Wait container's removal via Events API If AutoRemove is set, wait until client get `destroy` events, or get `detach` events that implies container is detached but not stopped. Signed-off-by: Zhang Wei Upstream-commit: 0f6a96d2a4cc69d4f9f7ab55b68d06982072bc33 Component: cli --- components/cli/man/docker-run.1.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/cli/man/docker-run.1.md b/components/cli/man/docker-run.1.md index 65cdc7ae9f..060ec8e035 100644 --- a/components/cli/man/docker-run.1.md +++ b/components/cli/man/docker-run.1.md @@ -468,7 +468,9 @@ its root filesystem mounted as read only prohibiting any writes. Restart policy to apply when a container exits (no, on-failure[:max-retry], always, unless-stopped). **--rm**=*true*|*false* - Automatically remove the container when it exits (incompatible with -d). The default is *false*. + Automatically remove the container when it exits. The default is *false*. + `--rm` flag can work together with `-d`, and auto-removal will be done on daemon side. Note that it's +incompatible with any restart policy other than `none`. **--security-opt**=[] Security Options