From 16247bb8c3b6bfa56eb757655cebdaa55746ba6a Mon Sep 17 00:00:00 2001 From: qiuyin Date: Sat, 21 Jan 2017 20:18:39 +0900 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=9F=A5=E7=9C=8B=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=8D=B7=E7=9A=84=E5=85=B7=E4=BD=93=E4=BF=A1=E6=81=AF=EF=BC=8C?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E4=BA=86=E6=9C=80=E6=96=B0=E7=89=88=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data_management/volume.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/data_management/volume.md b/data_management/volume.md index 0d26f33..b839247 100644 --- a/data_management/volume.md +++ b/data_management/volume.md @@ -46,7 +46,17 @@ $ docker inspect web ... ``` -在输出的内容中找到其中和数据卷相关的部分,可以看到所有的数据卷都是创建在主机的`/mnt/sda1/var/lib/docker/volumes/....`下面了。 +在输出的内容中找到其中和数据卷相关的部分,可以看到所有的数据卷都是创建在主机的`/var/lib/docker/volumes/`下面的 +``` +"Volumes": { + "/webapp": "/var/lib/docker/volumes/fac362...80535" +}, +"VolumesRW": { + "/webapp": true +} +... +``` +注:从Docker 1.13.0起,数据卷配置在"Mounts"Key下面,可以看到所有的数据卷都是创建在主机的`/mnt/sda1/var/lib/docker/volumes/....`下面了。 ``` "Mounts": [ {