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>
Upstream-commit: 244d9c337034b0db030c05189ca8eb2323d92c61
Component: engine
This commit is contained in:
Sebastiaan van Stijn
2015-10-14 17:56:38 -07:00
parent 6d357aac9c
commit 453cdc0662

View File

@ -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.