USB access for agent running in docker

Hi,
I’m trying to setup a HIL testing pipeline with jenkins.
Everything is working great up to the point of the pipeline needing USB access.
My dockerfile is pretty basic, just starting with ubuntu:22.04 and installing some dependencies with apt-get.
I tried messing with udev rules, but that didn’t work.
Is there a way of granting the jenkins pipeline USB access, or should I not run it inside a docker container?
using Jenkins 2.401.3
Thank you

There is a wide ranging discussion on stackoverflow of the alternatives and compromises related to USB device access from a container.

Hello @Djock123 and welcome to this community. :wave:

What kind of OS are you running?
I remember having no particular problem when accessing USB through Docker under Linux, but it was impossible (for me at least) when using osX.