Open ricklon opened 3 years ago
I found a decent article on the topic. It might help: https://www.losant.com/blog/how-to-access-the-raspberry-pi-camera-in-docker
sudo vim /etc/udev/rules.d/99-camera.rules
Add:
SUBSYSTEM=="vchiq",MODE="0666"
Access the device in Docker this way:
--device /dev/vchiq
Example:
docker run --rm --device /dev/vchiq -it --entrypoint=/bin/bash rianders/car:ec807b5
Update:
docker run --rm --device /dev/vchiq -v /opt/vc:/opt/vc --env LD_LIBRARY_PATH=/opt/vc/lib -it --entrypoint=/bin/bash rianders/car:ec807b5
This is not working so I might be thinking about this wrong.
The library is still not found. What I found in the /opt/vc was nothing on the host machine. That's where this library is supposed to be for the camera on raspberry pi. How might I can the files in that spot?
Running Docker and accessing the camera causes an error. This error was fixed for running in Chi@Edge with the following line: device_profiles=["pi_camera"],
error.txt