I was able to host my USB device with the help of this Stack Overflow post
docker run -t -i --privileged -v /dev/bus/usb:/dev/bus/usb ubuntu bash
This hosts all the connected USB devices.
Is there a way in which I can host one particular device?
Let's say the USB file resides in /dev/bus/usb/002/005
. I would like this file alone to be hosted on my container.
I tried
docker run -t -i --privileged -v /dev/bus/usb/002/005:/dev/bus/usb/002/005 ubuntu bash
, but it still hosts the entire usb
directory.