Skip to content

Commit

Permalink
Fix grammar in docker volumes tutorial
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Chi <lucas@teacherspayteachers.com>
  • Loading branch information
lchi committed Jul 11, 2016
1 parent 602f1c0 commit 7b3ac47
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/tutorials/dockervolumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ if the volume is read/write.
### Mount a host directory as a data volume

In addition to creating a volume using the `-v` flag you can also mount a
directory from your Engine daemon's host into a container.
directory from your Docker engine's host into a container.

```bash
$ docker run -d -P --name web -v /src/webapp:/opt/webapp training/webapp python app.py
Expand All @@ -119,10 +119,10 @@ followed by `a-z0-9`, `_` (underscore), `.` (period) or `-` (hyphen).
An absolute path starts with a `/` (forward slash).

For example, you can specify either `/foo` or `foo` for a `host-dir` value.
If you supply the `/foo` value, Engine creates a bind-mount. If you supply
the `foo` specification, Engine creates a named volume.
If you supply the `/foo` value, the Docker Engine creates a bind-mount. If you supply
the `foo` specification, the Docker Engine creates a named volume.

If you are using Docker Machine on Mac or Windows, your Engine daemon has only
If you are using Docker Machine on Mac or Windows, your Docker Engine daemon has only
limited access to your OS X or Windows filesystem. Docker Machine tries to
auto-share your `/Users` (OS X) or `C:\Users` (Windows) directory. So, you can
mount files or directories on OS X using.
Expand All @@ -146,8 +146,8 @@ Docker `-v` flag.
Mounting a host directory can be useful for testing. For example, you can mount
source code inside a container. Then, change the source code and see its effect
on the application in real time. The directory on the host must be specified as
an absolute path and if the directory doesn't exist the Engine daemon automatically
creates it for you.
an absolute path and if the directory doesn't exist the Docker Engine daemon
automatically creates it for you.

Docker volumes default to mount in read-write mode, but you can also set it to
be mounted read-only.
Expand Down Expand Up @@ -344,15 +344,15 @@ restore testing using your preferred tools.
A Docker data volume persists after a container is deleted. You can create named
or anonymous volumes. Named volumes have a specific source form outside the
container, for example `awesome:/bar`. Anonymous volumes have no specific
source. When the container is deleted, you should instruction the Engine daemon
source. When the container is deleted, you should instruct the Docker Engine daemon
to clean up anonymous volumes. To do this, use the `--rm` option, for example:
```bash
$ docker run --rm -v /foo -v awesome:/bar busybox top
```
This command creates an anonymous `/foo` volume. When the container is removed,
Engine removes the `/foo` volume but not the `awesome` volume.
the Docker Engine removes the `/foo` volume but not the `awesome` volume.
## Important tips on using shared volumes
Expand Down

0 comments on commit 7b3ac47

Please sign in to comment.