mirror of https://github.com/docker/cli.git
Merge pull request #3808 from thaJeztah/docs_update_confusing_example
docs/reference: run.md update confusing example name
This commit is contained in:
commit
f947138333
|
@ -591,14 +591,15 @@ retrieve the container's ID once the container has finished running.
|
||||||
### <a name=device></a> Add host device to container (--device)
|
### <a name=device></a> Add host device to container (--device)
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run --device=/dev/sdc:/dev/xvdc \
|
$ docker run -it --rm \
|
||||||
--device=/dev/sdd --device=/dev/zero:/dev/nulo \
|
--device=/dev/sdc:/dev/xvdc \
|
||||||
-i -t \
|
--device=/dev/sdd \
|
||||||
ubuntu ls -l /dev/{xvdc,sdd,nulo}
|
--device=/dev/zero:/dev/foobar \
|
||||||
|
ubuntu ls -l /dev/{xvdc,sdd,foobar}
|
||||||
|
|
||||||
brw-rw---- 1 root disk 8, 2 Feb 9 16:05 /dev/xvdc
|
brw-rw---- 1 root disk 8, 2 Feb 9 16:05 /dev/xvdc
|
||||||
brw-rw---- 1 root disk 8, 3 Feb 9 16:05 /dev/sdd
|
brw-rw---- 1 root disk 8, 3 Feb 9 16:05 /dev/sdd
|
||||||
crw-rw-rw- 1 root root 1, 5 Feb 9 16:05 /dev/nulo
|
crw-rw-rw- 1 root root 1, 5 Feb 9 16:05 /dev/foobar
|
||||||
```
|
```
|
||||||
|
|
||||||
It is often necessary to directly expose devices to a container. The `--device`
|
It is often necessary to directly expose devices to a container. The `--device`
|
||||||
|
|
Loading…
Reference in New Issue