1
0
mirror of https://github.com/docker/cli.git synced 2025-08-08 12:02:07 +03:00

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

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. 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` 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 ```bash
$ docker run --device=/dev/sda:/dev/xvdc --rm -it ubuntu fdisk /dev/xvdc $ docker run --device=/dev/sda:/dev/xvdc --rm -it ubuntu fdisk /dev/xvdc