From 042270cda3046fda9ecba346da4b1ea5bedb2f46 Mon Sep 17 00:00:00 2001 From: He Simei Date: Thu, 20 Aug 2015 18:26:17 +0800 Subject: [PATCH] specify the docker run --rm action Signed-off-by: He Simei Upstream-commit: 76a559ccb288632ca650abe704a48581365f1ab4 Component: engine --- components/engine/docs/reference/run.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/engine/docs/reference/run.md b/components/engine/docs/reference/run.md index caab5b4c94..f011e22879 100644 --- a/components/engine/docs/reference/run.md +++ b/components/engine/docs/reference/run.md @@ -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