Merge pull request #2218 from akhilerm/privileged-device-doc

35991 - Modify CLI docs to specify working of device flag
This commit is contained in:
Sebastiaan van Stijn 2020-01-09 14:57:02 +01:00 committed by GitHub
commit 69b5c4c30c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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