1
0
mirror of https://github.com/docker/cli.git synced 2026-01-22 03:22:01 +03:00

add documentation clarifying behavior of VOLUME instruction

Signed-off-by: Patrick Hemmer <patrick.hemmer@gmail.com>
Upstream-commit: d3dae7f652
Component: cli
This commit is contained in:
Patrick Hemmer
2015-08-05 12:30:36 -04:00
committed by Tibor Vass
parent 20d188cf61
commit 519334c5f4

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
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 (').