1
0
mirror of https://github.com/docker/cli.git synced 2026-01-18 08:21:31 +03:00

Merge pull request #686 from mvasin/patch-1

Fix grammar
Upstream-commit: 48f4003591
Component: cli
This commit is contained in:
Sebastiaan van Stijn
2017-11-11 15:45:39 +01:00
committed by GitHub

View File

@@ -1284,7 +1284,7 @@ consider the following Dockerfile snippet:
RUN echo "hello world" > /myvol/greeting
VOLUME /myvol
This Dockerfile results in an image that causes `docker run`, to
This Dockerfile results in an image that causes `docker run` to
create a new mount point at `/myvol` and copy the `greeting` file
into the newly created volume.
@@ -1306,8 +1306,8 @@ Keep the following things in mind about volumes in the `Dockerfile`.
- **The host directory is declared at container run-time**: The host directory
(the mountpoint) is, by its nature, host-dependent. This is to preserve image
portability. since a given host directory can't be guaranteed to be available
on all hosts.For this reason, you can't mount a host directory from
portability, since a given host directory can't be guaranteed to be available
on all hosts. For this reason, you can't mount a host directory from
within the Dockerfile. The `VOLUME` instruction does not support specifying a `host-dir`
parameter. You must specify the mountpoint when you create or run the container.