From c8fe0a8414524acc26e5b54fd06aa276592781f0 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Tue, 21 Mar 2017 15:30:04 -0400 Subject: [PATCH] Add note regarding Windows VOLUME limitations Signed-off-by: John Maguire Upstream-commit: 020ec88542e88bb561c30a1ec984d0a17c74b7f9 Component: engine --- components/engine/docs/reference/builder.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/engine/docs/reference/builder.md b/components/engine/docs/reference/builder.md index 75c7e0c0c1..cd957e5d90 100644 --- a/components/engine/docs/reference/builder.md +++ b/components/engine/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.