mirror of https://github.com/docker/cli.git
Cleanup: correct cli --volumes-from description
issue #7580 volumes-from comma separated list mentioned this case. Options like --volumes-from=[] indicate they can be specified multiple times: docker run -it --rm --volumes-from TEST_DATA --volumes-from TEST_DATA2 ubuntu bash Signed-off-by: Deshi Xiao <dxiao@redhat.com>
This commit is contained in:
parent
d8b3ccd869
commit
46121c5edd
|
@ -1145,14 +1145,14 @@ network and environment of the `redis` container via environment variables.
|
||||||
The `--name` flag will assign the name `console` to the newly created
|
The `--name` flag will assign the name `console` to the newly created
|
||||||
container.
|
container.
|
||||||
|
|
||||||
$ sudo docker run --volumes-from 777f7dc92da7,ba8c0c54f0f2:ro -i -t ubuntu pwd
|
$ sudo docker run --volumes-from 777f7dc92da7 --volumes-from ba8c0c54f0f2:ro -i -t ubuntu pwd
|
||||||
|
|
||||||
The `--volumes-from` flag mounts all the defined volumes from the referenced
|
The `--volumes-from` flag mounts all the defined volumes from the referenced
|
||||||
containers. Containers can be specified by a comma separated list or by
|
containers. Containers can be specified by repetitions of the `--volumes-from`
|
||||||
repetitions of the `--volumes-from` argument. The container ID may be
|
argument. The container ID may be optionally suffixed with `:ro` or `:rw` to
|
||||||
optionally suffixed with `:ro` or `:rw` to mount the volumes in read-only
|
mount the volumes in read-only or read-write mode, respectively. By default,
|
||||||
or read-write mode, respectively. By default, the volumes are mounted in
|
the volumes are mounted in the same mode (read write or read only) as
|
||||||
the same mode (read write or read only) as the reference container.
|
the reference container.
|
||||||
|
|
||||||
The `-a` flag tells `docker run` to bind to the container's `STDIN`, `STDOUT` or
|
The `-a` flag tells `docker run` to bind to the container's `STDIN`, `STDOUT` or
|
||||||
`STDERR`. This makes it possible to manipulate the output and input as needed.
|
`STDERR`. This makes it possible to manipulate the output and input as needed.
|
||||||
|
|
Loading…
Reference in New Issue