mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-19 04:07:34 +00:00
add documentation clarifying behavior of VOLUME instruction
Signed-off-by: Patrick Hemmer <patrick.hemmer@gmail.com>
(cherry picked from commit 08a867b82f)
This commit is contained in:
committed by
Mary Anthony
parent
3e2e0397f3
commit
385676735b
@@ -900,6 +900,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 (').
|
||||
|
||||
Reference in New Issue
Block a user