From 519334c5f47841f10e5c3cb1a3685a5033dc4975 Mon Sep 17 00:00:00 2001 From: Patrick Hemmer Date: Wed, 5 Aug 2015 12:30:36 -0400 Subject: [PATCH] add documentation clarifying behavior of VOLUME instruction Signed-off-by: Patrick Hemmer Upstream-commit: d3dae7f652e6cfffe69ed2846d9c77349206ed04 Component: cli --- components/cli/docs/reference/builder.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/cli/docs/reference/builder.md b/components/cli/docs/reference/builder.md index 5fbed753c1..1d7a86aeb2 100644 --- a/components/cli/docs/reference/builder.md +++ b/components/cli/docs/reference/builder.md @@ -906,6 +906,10 @@ This Dockerfile results in an image that causes `docker run`, to create a new mount point at `/myvol` and copy the `greeting` file into the newly created volume. +> **Note**: +> If any build steps change the data within the volume after it has been +> declared, those changes will be discarded. + > **Note**: > The list is parsed as a JSON array, which means that > you must use double-quotes (") around words not single-quotes (').