From 5584897f59d0ed0989c611e19d583c01d268c945 Mon Sep 17 00:00:00 2001 From: John Howard Date: Wed, 22 Mar 2017 12:01:36 -0700 Subject: [PATCH] Merge pull request #31980 from JohnMaguire/doc-update Add note regarding Windows VOLUME limitations (cherry picked from commit c33c457852bd6901ecc1f81449b59984a555a963) Signed-off-by: Sebastiaan van Stijn --- docs/reference/builder.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/reference/builder.md b/docs/reference/builder.md index 75c7e0c0c1..cd957e5d90 100644 --- a/docs/reference/builder.md +++ b/docs/reference/builder.md @@ -1222,6 +1222,11 @@ 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**: +> When using Windows-based containers, the destination of a volume inside the +> container must be one of: a non-existing or empty directory; or a drive other +> than C:. + > **Note**: > If any build steps change the data within the volume after it has been > declared, those changes will be discarded.