Show a warning when a relative path is specified without "./"

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2015-08-10 13:41:11 +01:00
commit 46e8e4322a
3 changed files with 73 additions and 6 deletions

View file

@ -135,11 +135,12 @@ Mount paths as volumes, optionally specifying a path on the host machine
volumes:
- /var/lib/mysql
- cache/:/tmp/cache
- ./cache:/tmp/cache
- ~/configs:/etc/configs/:ro
You can mount a relative path on the host, which will expand relative to
the directory of the Compose configuration file being used.
the directory of the Compose configuration file being used. Relative paths
should always begin with `.` or `..`.
> Note: No path expansion will be done if you have also specified a
> `volume_driver`.