浏览代码

Update volumes userguide

Fixes #15644

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi 10 年之前
父节点
当前提交
ea56c5e1ce
共有 1 个文件被更改,包括 13 次插入8 次删除
  1. 13 8
      docs/userguide/dockervolumes.md

+ 13 - 8
docs/userguide/dockervolumes.md

@@ -74,16 +74,21 @@ The output will provide details on the container configurations including the
 volumes. The output should look something similar to the following:
 volumes. The output should look something similar to the following:
 
 
     ...
     ...
-    "Volumes": {
-        "/webapp": "/var/lib/docker/volumes/fac362...80535"
-    },
-    "VolumesRW": {
-        "/webapp": true
-    }
+    Mounts": [
+        {
+            "Name": "fac362...80535",
+            "Source": "/var/lib/docker/volumes/fac362...80535/_data",
+            "Destination": "/webapp",
+            "Driver": "local",
+            "Mode": "",
+            "RW": true
+        }
+    ]
     ...
     ...
 
 
-You will notice in the above 'Volumes' is specifying the location on the host and 
-'VolumesRW' is specifying that the volume is read/write.
+You will notice in the above 'Source' is specifying the location on the host and 
+'Destination' is specifying the volume location inside the container. `RW` shows
+if the volume is read/write.
 
 
 ### Mount a host directory as a data volume
 ### Mount a host directory as a data volume