From b706d63e16e0eac004b655ca3d554205a72a11bf Mon Sep 17 00:00:00 2001 From: FunkyMonkeyMonk Date: Sat, 1 Mar 2014 20:43:22 -0500 Subject: [PATCH] adding note that host-volumes must be defined using absolute paths Docker-DCO-1.1-Signed-off-by: Will Weaver (github: funkymonkeymonk) Upstream-commit: 3ddfbf68802b7a62dcdefd46decb3f7f6faebabe Component: engine --- components/engine/AUTHORS | 1 + components/engine/docs/sources/use/working_with_volumes.rst | 1 + 2 files changed, 2 insertions(+) diff --git a/components/engine/AUTHORS b/components/engine/AUTHORS index a54c6337cb..df091d5950 100644 --- a/components/engine/AUTHORS +++ b/components/engine/AUTHORS @@ -334,6 +334,7 @@ Wes Morgan Will Dietz William Delanoue Will Rouesnel +Will Weaver Xiuming Chen Yang Bai Yurii Rashkovskii diff --git a/components/engine/docs/sources/use/working_with_volumes.rst b/components/engine/docs/sources/use/working_with_volumes.rst index 9a27e4b929..2e3b36ba2f 100644 --- a/components/engine/docs/sources/use/working_with_volumes.rst +++ b/components/engine/docs/sources/use/working_with_volumes.rst @@ -90,6 +90,7 @@ Mount a Host Directory as a Container Volume: -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 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