1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #15337 from phemmer/doc-builder-volume

add documentation clarifying behavior of VOLUME instruction
This commit is contained in:
moxiegirl 2015-08-18 09:42:00 -07:00
commit 7ae6a505f2

View file

@ -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 create a new mount point at `/myvol` and copy the `greeting` file
into the newly created volume. 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**: > **Note**:
> The list is parsed as a JSON array, which means that > The list is parsed as a JSON array, which means that
> you must use double-quotes (") around words not single-quotes ('). > you must use double-quotes (") around words not single-quotes (').