-
Notifications
You must be signed in to change notification settings - Fork 69
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
Use libcamera in docker container #35
Comments
You'll need to pass in at least the /dev/media* devices and /dev/v4l-subdev* devices into the docker container too |
Modified the docker run command as below, but still no working. |
Can you post a full log of running cam --list in the container? LIBCAMERA_LOG_LEVELS=*:0 cam --list (Or the gst-device-monitor-1.0 Video with full logging too) |
Please find the log as below, thank you.
gst-device-monitor-1.0 Video --gst-debug-level=9 |
I believe your issue is to do with udev not functioning as we expect inside the container. We already have a means to fall back to using sysfs to enumerate devices, so if you remove libudev-dev from your dependencies it should use that. I've tried it locally on an X86 and managed to get devices listing there, so it's worth a go, and might be enough of a workaround. For a real solution you might want to try investigating how or why udev isn't doing what is expected inside the container, but maybe not using it is enough. |
Any luck here? Did this solve your issues? Or did you find a way to get udev running in the container? |
Thank you, but I still cannot let it work, after removed libudev-dev from container. I got below messages:
|
That's probably something to report/take up with the RPi developers perhaps at that point. You could post that on bugs.libcamera.org or post it to the libcamera-devel mailinglist, or contact RPi through their forums. |
@ambrosekwok - did you manage to get it resolved and got the libcamera working in container? Hope is that by now you've a solution. I'm heading same way, hence asking. Thanks! |
See : raspberrypi/rpicam-apps#270 (comment)
That may help |
raspberrypi/rpicam-apps#270 (comment) confirms libcamera can run in docker environments, so I'll close this now. |
Hello,
I try to use libcamera in docker container, but I got below error messages
Here is dockerfile used:
Command used to run the container:
docker run -it --rm --privileged --device /dev/vchiq:/dev/vchiq --device /dev/dri:/dev/dri -v /dev/bus/usb:/dev/bus/usb -v /dev/video0:/dev/video0 -v /dev/video1:/dev/video1 libcamera bash
The libcamera work fine on the host with Raspberry Pi OS, but failed inside container.
Any advise to make libcamera work in docker container? Thank you.
Best regards
The text was updated successfully, but these errors were encountered: