mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
remove incorrect "readonly" example
The :ro option can only be used for named and bind-mounted volumes, not on "regular" (unnamed) volumes as explained in https://github.com/docker/docker/pull/16013#issuecomment-146647216 The example in the documentation actually resulted in a bind-mounted volume, mounted at "ro" inside the container. This removes the incorrect example from the documentation. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
b22f89cb77
commit
244d9c3370
1 changed files with 0 additions and 5 deletions
|
@ -59,11 +59,6 @@ This will create a new volume inside a container at `/webapp`.
|
|||
> You can also use the `VOLUME` instruction in a `Dockerfile` to add one or
|
||||
> more new volumes to any container created from that image.
|
||||
|
||||
Docker volumes default to mount in read-write mode, but you can also set it to be mounted read-only.
|
||||
|
||||
$ docker run -d -P --name web -v /opt/webapp:ro training/webapp python app.py
|
||||
|
||||
|
||||
### Locating a volume
|
||||
|
||||
You can locate the volume on the host by utilizing the 'docker inspect' command.
|
||||
|
|
Loading…
Reference in a new issue