mirror of https://github.com/docker/docs.git
Merge pull request #5850 from rhatdan/fixmanpage
Add description of --volume read-only/read-write to docker-run man page.
This commit is contained in:
commit
9405a58e99
|
@ -190,19 +190,29 @@ interactive shell. The default is value is false.
|
||||||
Set a username or UID for the container.
|
Set a username or UID for the container.
|
||||||
|
|
||||||
|
|
||||||
**-v**, **-volume**=*volume*
|
**-v**, **-volume**=*volume*[:ro|:rw]
|
||||||
Bind mount a volume to the container. The **-v** option can be used one or
|
Bind mount a volume to the container.
|
||||||
|
|
||||||
|
The **-v** option can be used one or
|
||||||
more times to add one or more mounts to a container. These mounts can then be
|
more times to add one or more mounts to a container. These mounts can then be
|
||||||
used in other containers using the **--volumes-from** option. See examples.
|
used in other containers using the **--volumes-from** option.
|
||||||
|
|
||||||
|
The volume may be optionally suffixed with :ro or :rw to mount the volumes in
|
||||||
|
read-only or read-write mode, respectively. By default, the volumes are mounted
|
||||||
|
read-write. See examples.
|
||||||
|
|
||||||
**--volumes-from**=*container-id*
|
**--volumes-from**=*container-id*[:ro|:rw]
|
||||||
Will mount volumes from the specified container identified by container-id.
|
Will mount volumes from the specified container identified by container-id.
|
||||||
Once a volume is mounted in a one container it can be shared with other
|
Once a volume is mounted in a one container it can be shared with other
|
||||||
containers using the **--volumes-from** option when running those other
|
containers using the **--volumes-from** option when running those other
|
||||||
containers. The volumes can be shared even if the original container with the
|
containers. The volumes can be shared even if the original container with the
|
||||||
mount is not running.
|
mount is not running.
|
||||||
|
|
||||||
|
The container ID may be optionally suffixed with :ro or
|
||||||
|
:rw to mount the volumes in read-only or read-write mode, respectively. By
|
||||||
|
default, the volumes are mounted in the same mode (read write or read only) as
|
||||||
|
the reference container.
|
||||||
|
|
||||||
|
|
||||||
**-w**, **-workdir**=*directory*
|
**-w**, **-workdir**=*directory*
|
||||||
Working directory inside the container. The default working directory for
|
Working directory inside the container. The default working directory for
|
||||||
|
|
Loading…
Reference in New Issue