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
+2 -1
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