瀏覽代碼

Merge pull request #7786 from psftw/volume_removal

Be more explicit about volume lifecycle
Fred Lifton 11 年之前
父節點
當前提交
d420b2cce0
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      docs/sources/userguide/dockervolumes.md

+ 2 - 1
docs/sources/userguide/dockervolumes.md

@@ -119,7 +119,8 @@ You can also extend the chain by mounting the volume that came from the
 
 
 If you remove containers that mount volumes, including the initial `dbdata`
 If you remove containers that mount volumes, including the initial `dbdata`
 container, or the subsequent containers `db1` and `db2`, the volumes will not
 container, or the subsequent containers `db1` and `db2`, the volumes will not
-be deleted until there are no containers still referencing those volumes. This
+be deleted.  To delete the volume from disk, you must explicitly call
+`docker rm -v` against the last container with a reference to the volume. This
 allows you to upgrade, or effectively migrate data volumes between containers.
 allows you to upgrade, or effectively migrate data volumes between containers.
 
 
 ## Backup, restore, or migrate data volumes
 ## Backup, restore, or migrate data volumes