Docker Community Forums

Share and learn in the Docker community.

Need info about USB devices and UDEV


(Christianwaite) #1

Hey everyone.
I’ve made a docker that relies on a USB device to operate. Currently I have it referencing /dev/ttyUSB0, but if I take the device out and put it back in, it’ll move to /dev/ttyUSB1 etc etc…

So I can setup a udev rule on the host OS to symlink it to /dev/mydevice, but how can I pass that through to the docker which doesn’t deal with udev.

Thanks
Christian

P.s. I’m a pretty useless novice :slight_smile:


(Christianwaite) #2

Is this something that can’t be done, or is the question too stupid it doesn’t deserve a second look?
C