mirror of https://github.com/docker/docs.git
Update bind-mounts.md (#8696)
This commit is contained in:
parent
b7b1e03f04
commit
c90007a548
|
@ -23,7 +23,7 @@ manage bind mounts.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## 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,
|
||||||
|
|
Loading…
Reference in New Issue