Add note about host-dir in VOLUME

Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
This commit is contained in:
Bhavin Gandhi 2017-04-20 12:02:57 +05:30 committed by Bhavin Gandhi
parent 345fc1bed7
commit b9fe386870

View file

@ -1235,6 +1235,12 @@ into the newly created volume.
> The list is parsed as a JSON array, which means that
> you must use double-quotes (") around words not single-quotes (').
>**Note**: The host directory is, by its nature, host-dependent. For this
>reason, you can't mount a host directory from `Dockerfile`, the `VOLUME`
instruction does not support passing a `host-dir`, because built images
>should be portable. A host directory wouldn't be available on all potential
>hosts.
## USER
USER daemon