mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-09-22 05:40:50 +02:00
Access to devices
This commit is contained in:
parent
5f06c29fe7
commit
5a6825705d
1 changed files with 15 additions and 0 deletions
15
README.md
15
README.md
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue