소스 검색

add documentation clarifying behavior of VOLUME instruction

Signed-off-by: Patrick Hemmer <patrick.hemmer@gmail.com>
Patrick Hemmer 10 년 전
부모
커밋
08a867b82f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      docs/reference/builder.md

+ 4 - 0
docs/reference/builder.md

@@ -912,6 +912,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 (').