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:
Akhil Mohan 2019-12-08 19:55:18 +05:30
parent 8547dfcff7
commit e1daa22ba1
No known key found for this signature in database
GPG Key ID: 391F159C7531BD86
1 changed files with 2 additions and 1 deletions

View File

@ -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