Update bind-mounts.md (#8696)

This commit is contained in:
Wang Jie 2019-04-24 07:25:26 +08:00 committed by Maria Bermudez
parent b7b1e03f04
commit c90007a548
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ manage bind mounts.
![bind mounts on the Docker host](images/types-of-mounts-bind.png) ![bind mounts on the Docker host](images/types-of-mounts-bind.png)
## Choosing the -v or --mount flag ## Choose the -v or --mount flag
Originally, the `-v` or `--volume` flag was used for standalone containers and Originally, the `-v` or `--volume` flag was used for standalone containers and
the `--mount` flag was used for swarm services. However, starting with Docker the `--mount` flag was used for swarm services. However, starting with Docker
@ -159,7 +159,7 @@ $ docker container stop devtest
$ docker container rm devtest $ docker container rm devtest
``` ```
### Mounting into a non-empty directory on the container ### Mount into a non-empty directory on the container
If you bind-mount into a non-empty directory on the container, the directory's If you bind-mount into a non-empty directory on the container, the directory's
existing contents are obscured by the bind mount. This can be beneficial, existing contents are obscured by the bind mount. This can be beneficial,