Hi Craftonix
Few things you could try/check:
Docker Privileges: Ensure that the --privileged flag is indeed granting the container the necessary privileges to access the host's USB devices.
USB Device Mapping: You have mapped /dev/bus/usb from your host to the Docker container using the -v /dev/bus/usb:/dev/bus/usb flag which seems correct. Ensure that the devices are indeed available under /dev/bus/usb in your macOS system.
Display Environment Variable: You are mapping the $DISPLAY environment variable and the
/tmp/.X11-unix directory to enable GUI display from the container. Ensure that the XQuartz is running and is configured to allow connections from network clients (you can find this option in XQuartz preferences under the “Security” tab).Additional Commands:
Before running the Docker command, run xhost + in your terminal to allow connections to the X server.
Try adding --network host to your Docker command, which sometimes solves connectivity issues.Docker Daemon Restart: Sometimes, restarting the Docker daemon can resolve issues with device access.
Hope this helps,
Jaka