Sharing devices (webcam, USB drives, etc) with Docker

前端 未结 3 1435
悲哀的现实
悲哀的现实 2020-12-16 10:16

I have a need to share specific devices from /dev on my host Linux machine with my docker containers.

The --privileged flag works for shari

3条回答
  •  生来不讨喜
    2020-12-16 10:29

    It is difficult to place the device when the system is running (USB detection) you should make an script to place the devices as they are found and do the --rm (so each time you exit the machine is removed, and you have a new chance to import the devices)

提交回复
热议问题