From 244d9c337034b0db030c05189ca8eb2323d92c61 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 14 Oct 2015 17:56:38 -0700 Subject: [PATCH] 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 --- docs/userguide/dockervolumes.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/userguide/dockervolumes.md b/docs/userguide/dockervolumes.md index 25775a21d5..0b53e81886 100644 --- a/docs/userguide/dockervolumes.md +++ b/docs/userguide/dockervolumes.md @@ -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.