1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

specify the docker run --rm action

Signed-off-by: He Simei <hesimei@zju.edu.cn>
This commit is contained in:
He Simei
2015-08-20 18:26:17 +08:00
committed by Tibor Vass
parent 91502290a5
commit 90cf0587f1

View File

@@ -463,6 +463,10 @@ the container exits**, you can add the `--rm` flag:
--rm=false: Automatically remove the container when it exits (incompatible with -d)
> **Note**: When you set the `--rm` flag, Docker also removes the volumes
associated with the container when the container is removed. This is similar
to running `docker rm -v my-container`.
## Security configuration
--security-opt="label:user:USER" : Set the label user for the container
--security-opt="label:role:ROLE" : Set the label role for the container