瀏覽代碼

Merge pull request #4406 from funkymonkeymonk/voldocs

adding note that host-volumes must be defined using absolute paths
James Turnbull 11 年之前
父節點
當前提交
37893c3db0
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      AUTHORS
  2. 1 0
      docs/sources/use/working_with_volumes.rst

+ 1 - 0
AUTHORS

@@ -334,6 +334,7 @@ Wes Morgan <cap10morgan@gmail.com>
 Will Dietz <w@wdtz.org>
 Will Dietz <w@wdtz.org>
 William Delanoue <william.delanoue@gmail.com>
 William Delanoue <william.delanoue@gmail.com>
 Will Rouesnel <w.rouesnel@gmail.com>
 Will Rouesnel <w.rouesnel@gmail.com>
+Will Weaver <monkey@buildingbananas.com>
 Xiuming Chen <cc@cxm.cc>
 Xiuming Chen <cc@cxm.cc>
 Yang Bai <hamo.by@gmail.com>
 Yang Bai <hamo.by@gmail.com>
 Yurii Rashkovskii <yrashk@gmail.com>
 Yurii Rashkovskii <yrashk@gmail.com>

+ 1 - 0
docs/sources/use/working_with_volumes.rst

@@ -92,6 +92,7 @@ Mount a Host Directory as a Container Volume:
 
 
   -v=[]: Create a bind mount with: [host-dir]:[container-dir]:[rw|ro].
   -v=[]: Create a bind mount with: [host-dir]:[container-dir]:[rw|ro].
 
 
+You must specify an absolute path for ``host-dir``.
 If ``host-dir`` is missing from the command, then docker creates a new volume.
 If ``host-dir`` is missing from the command, then docker creates a new volume.
 If ``host-dir`` is present but points to a non-existent directory on the host,
 If ``host-dir`` is present but points to a non-existent directory on the host,
 Docker will automatically create this directory and use it as the source of the
 Docker will automatically create this directory and use it as the source of the