Skip to content

Commit 7183279

Browse files
author
Misty Stanley-Jones
authored
Merge pull request #476 from alexisbellido/master
Clarify the fact that VOLUME does not support host-dir
2 parents 4e2ee1a + 8a7af7a commit 7183279

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

engine/tutorials/dockervolumes.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,12 @@ Here you've mounted the same `/src/webapp` directory but you've added the `ro`
154154
option to specify that the mount should be read-only.
155155

156156
>**Note**: The host directory is, by its nature, host-dependent. For this
157-
>reason, you can't mount a host directory from `Dockerfile` because built images
157+
>reason, you can't mount a host directory from `Dockerfile`, the `VOLUME`
158+
instruction does not support passing a `host-dir`, because built images
158159
>should be portable. A host directory wouldn't be available on all potential
159160
>hosts.
160161
162+
161163
### Mount a shared-storage volume as a data volume
162164

163165
In addition to mounting a host directory in your container, some Docker

0 commit comments

Comments
 (0)