Mounting Pluggable USB Device in Docker

Greetings @philschenker,

Alright, just to make sure I understand. In generic terms you have a USB device that may or may not be attached when the container starts. Either way you’d want it to be recognized in the container. Furthermore, this USB device can be removed or attached at any time, is that more or less correct?

One thing you could try is setting up a volume/bind-mount with the “bind-propagation” property as described here: Configuring docker dynamic USB memory access with --mount option in VS Code Torizon Extension

More info on this property from Docker: Bind mounts | Docker Docs

I’ve used this before with a USB drive and it allowed me to access the contents of my USB drive even when plugging it in, after my container has started. Perhaps it would help similarly for USB devices in general.

Best Regards,
Jeremias