浏览代码

Merge pull request #18684 from cdauth/volume-docs

Add note to volume docs that data is not copied to mounted volumes
Sebastiaan van Stijn 9 年之前
父节点
当前提交
69fbdf4294
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      docs/userguide/dockervolumes.md

+ 2 - 1
docs/userguide/dockervolumes.md

@@ -29,7 +29,8 @@ containers that bypasses the [*Union File System*](../reference/glossary.md#unio
 
 
 - Volumes are initialized when a container is created. If the container's
 - Volumes are initialized when a container is created. If the container's
   base image contains data at the specified mount point, that existing data is
   base image contains data at the specified mount point, that existing data is
-  copied into the new volume upon volume initialization.
+  copied into the new volume upon volume initialization. (Note that this does
+  not apply when [mounting a host directory](#mount-a-host-directory-as-a-data-volume).)
 - Data volumes can be shared and reused among containers.
 - Data volumes can be shared and reused among containers.
 - Changes to a data volume are made directly.
 - Changes to a data volume are made directly.
 - Changes to a data volume will not be included when you update an image.
 - Changes to a data volume will not be included when you update an image.