Dynamic link USB device to Docker - UDEV symlink


niietzshe

Recommended Posts

Hey all, I asked over on the Docker forum and got nothing but tumbleweed.

I have a docker running OpenHab that is working perfectly, apart from if I remove the USB device and re-insert it.

You have to hard link it to a port (so /dev/ttyUSB0). I tried UDEV as explained here, but docker doesn't seem to support it.

 

I can setup the UDEV symlink in UnRaid, but then I'm unsure how to access that in the docker as the new link doesn't translate over to it.

 

Basically the problem is that I can never fully know what /dev/ port the USB device is on, so I need some way of dynamically linking that to something consistent. If anyone can offer any suggestions it'd be much appreciated.

 

Thanks

Christian

Link to comment
  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.