Add note regarding Windows VOLUME limitations

Signed-off-by: John Maguire <jmaguire@duosecurity.com>
This commit is contained in:
John Maguire 2017-03-21 15:30:04 -04:00 committed by Tibor Vass
parent 865b35703b
commit b3da704154
1 changed files with 5 additions and 0 deletions

View File

@ -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 create a new mount point at `/myvol` and copy the `greeting` file
into the newly created volume. 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**: > **Note**:
> If any build steps change the data within the volume after it has been > If any build steps change the data within the volume after it has been
> declared, those changes will be discarded. > declared, those changes will be discarded.