-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature-Request] docker support without volume sharing #1217
Comments
Can you sare the
|
I'm just trying out the example in the docs right now. I know there's still a volume for the display, but that's not the important one, since I won't be using a display. this works:
this doesn't:
The camera is an OAK-D-S2-FF |
Ah ok, I see. |
I'm not sure how to prepare an image with the correct prerequisites, do you have an example of what worked for you? This is what I tried.
services:
oak:
build:
context: .
dockerfile: oak.dockerfile
privileged: true
device_cgroup_rules:
- 'c 189:* rmw'
- 'c 81:* rmw'
devices:
- "/dev/bus/usb"
- "/dev/dri"
cap_add:
- SYS_RAWIO
command: python3 /depthai-python/examples/ColorCamera/rgb_preview.py
this pull request apparently fixed the issue on RealSense: IntelRealSense/librealsense#11900 |
Hmm, I think I mixed something up... my old records show that I added a couple of devices with It's some time ago already when OpenVINO stopped supporting Movidius-Myriax-X. The old Dockerfile should still be in a Github repo, but your reference to RealSense seems changed in the software for device-enumeration is/was needed... |
with realsense it was possible to run it before the merge linked above using privileged mode and sharing the whole /dev in devices.
IntelRealSense/realsense-ros#1104 (comment) but that doesn't work the oak. |
Feature Request: Enable OAK Camera Access Without Volume Sharing
Why
Currently, accessing OAK cameras in Docker requires mounting
/dev/bus/usb
as a volume. This prevents usage in environments that don't allow volume mounting, such as Balena OS - a popular edge device management platform. This limitation blocks potential industrial and IoT applications where Balena would be the ideal deployment solution.What
Add support for accessing OAK cameras in containerized environments without requiring volume mounts. This would enable:
How
Proposed implementation approaches:
Native USB Access Layer:
Alternative Device Access Method:
The exact implementation details would need to be determined by the DepthAI team based on the codebase architecture.
Current Workaround Limitations
Attempted solutions like installing udev rules in the container or creating USB device directories do not resolve the fundamental need for volume access to USB devices.
The text was updated successfully, but these errors were encountered: