Accessing a USB device in Docker

Hello everyone,

Our upcoming Umbrel app needs access to a particular USB device (HW wallet) that users will connect to the host device.

By default programs running inside Docker cannot access the host USB hub. Is there a worked out way that Umbrel handles these situations?

I’ve done some homework and it seems that a USB device can be made accessible to a Docker container, but there are two prerequisites:

  1. – this would have to copy a specific udev rules file to the host device during the OS installation.

  2. The container would then have to be started like docker run -t -i --device=/dev/ttyUSB0 ..., making the device visible to the app inside it.

Are these steps feasible? Would such a PR even be merged? How would existing Umbrel installations get updated with this configuration?