Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
| ... | ... |
@@ -1235,6 +1235,12 @@ into the newly created volume. |
| 1235 | 1235 |
> The list is parsed as a JSON array, which means that |
| 1236 | 1236 |
> you must use double-quotes (") around words not single-quotes (').
|
| 1237 | 1237 |
|
| 1238 |
+>**Note**: The host directory is, by its nature, host-dependent. For this |
|
| 1239 |
+>reason, you can't mount a host directory from `Dockerfile`, the `VOLUME` |
|
| 1240 |
+instruction does not support passing a `host-dir`, because built images |
|
| 1241 |
+>should be portable. A host directory wouldn't be available on all potential |
|
| 1242 |
+>hosts. |
|
| 1243 |
+ |
|
| 1238 | 1244 |
## USER |
| 1239 | 1245 |
|
| 1240 | 1246 |
USER daemon |