Hi Jaka,
This is for the OAK-D PoE and OAK-D S2 PoE. These are both network devices, not USB. But still I want to try your suggestions because I am familiar with Docker and priviledges.
What do you mean by (1) ? How do I ensure?
This is what I get inside the container:
docker run --rm -it --privileged --net=host -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule='c 189:* rmw' -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix luxonis/depthai-library:latest bash
root@docker-desktop:/# ls /dev/bus
usb
root@docker-desktop:/# ls /dev/bus/usb
root@docker-desktop:/#
Regarding (2): macOS does not have /dev/bus
So, I don't understand what you are mapping with -v option.
I have verified (3) and (4) using this. I can run X11 apps (e.g. xeyes, gnome-calculator, xclock) and display them in XQuartz.
Also, since the Luxonis image does not have ifconfig
, I used the bash
image to verify that --net=host
is actually granting access to all the network interfaces of the host.
To diagnose this further, I think we should ignore the GUI/display part (since I know this is working with other images) and focus on the networking and USB parts. So, I tried bootloader_version.py
which is a terminal-only CLI:
docker run --rm --privileged --net=host -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule='c 189:* rmw' -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix luxonis/depthai-library:latest python3 /depthai-python/examples/bootloader/bootloader_version.py
[2023-09-06 12:42:48.498] [depthai] [warning] USB protocol not available - If running in a container, make sure that the following is set: "-v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule='c 189:* rmw'"
No devices found
Still the same error.
Are you sure you have tried running the Luxonis docker image on Docker Desktop for macOS ?