I'm trying to create a Python docker container that can access the USB-GPIB using pyvisa. In host OS I was able tu successfully install linux-gpib and pyvisa-info lists it. Inside a docker container running --privileged I can see the the /dev/gpib?, I can also see the connect USB using lsusb, but pyvisa complains that linux-gpib is not installed. I have tried to rebuild the linux-gpib-user inside the container but it did not solve the problem.
Did you try with plain python?
Example:
Could you please share the Dockerfile?