1

I need to attach /dev/video0 and /dev/ttyUSB0 to container.

Both docker run --device=/dev/video0 (...) and docker run --device=/dev/ttyUSB0 (...) work but how to attach them both at the same time?

Lord_JABA
  • 2,545
  • 7
  • 31
  • 58

1 Answers1

2

You can use the --device flag multiple times.

docker run --device=/dev/video0 --device=/dev/ttyUSB0 (...)
Shashank V
  • 10,007
  • 2
  • 25
  • 41