mirror of https://github.com/docker/cli.git
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 <zhangwei555@huawei.com>
This commit is contained in:
parent
e5a1e08fa0
commit
0f6a96d2a4
|
@ -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).
|
Restart policy to apply when a container exits (no, on-failure[:max-retry], always, unless-stopped).
|
||||||
|
|
||||||
**--rm**=*true*|*false*
|
**--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-opt**=[]
|
||||||
Security Options
|
Security Options
|
||||||
|
|
Loading…
Reference in New Issue