Access to devices

This commit is contained in:
Mauro 2016-10-14 10:27:45 -03:00 committed by GitHub
parent 5f06c29fe7
commit 5a6825705d

View file

@ -698,6 +698,21 @@ For all containers listed by image:
docker ps -a -f ancestor=ubuntu
```
Give access to a single device:
```
docker run -t -i --device=/dev/ttyUSB0 debian bash
```
Give access to all devices:
```
docker run -t -i --privileged debian bash
```
more info about privileged containers [here](
https://docs.docker.com/engine/reference/run/#/runtime-privilege-and-linux-capabilities)
## Contributing
Here's how to contribute to this cheat sheet.