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

前端 未结 3 1436
悲哀的现实
悲哀的现实 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条回答
  •  旧时难觅i
    2020-12-16 10:28

    You are looking check the flag --device

       --device=[]
          Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc:rwm)
    

    Have a nice day!

提交回复
热议问题