浏览代码

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

add documentation clarifying behavior of VOLUME instruction
moxiegirl 10 年之前
父节点
当前提交
7ae6a505f2
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      docs/reference/builder.md

+ 4 - 0
docs/reference/builder.md

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