mirror of https://github.com/docker/cli.git
Modify docs to specify working of device flag
Modify the docker run docs, to specify working of --device flag in containers that are started in privileged mode. The custom device permissions that are given to a device in privileged mode are ignored and goes with `rwm` by default Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
This commit is contained in:
parent
8547dfcff7
commit
e1daa22ba1
|
|
@ -560,7 +560,8 @@ device or audio device can be added to an otherwise unprivileged container
|
|||
|
||||
By default, the container will be able to `read`, `write` and `mknod` these devices.
|
||||
This can be overridden using a third `:rwm` set of options to each `--device`
|
||||
flag:
|
||||
flag. If the container is running in privileged mode, then the permissions specified
|
||||
will be ignored.
|
||||
|
||||
```bash
|
||||
$ docker run --device=/dev/sda:/dev/xvdc --rm -it ubuntu fdisk /dev/xvdc
|
||||
|
|
|
|||
Loading…
Reference in New Issue