Using v4l2loopback in a docker container to create a camera

964 views Asked by At

I want to create a fake webcam in a docker container, so I install v4l2loopback-dkms on a docker container with the "adoptopenjdk/openjdk11:ubuntu-jre" image. When I run: sudo modprobe v4l2loopback devices=1

I get this error: mobprobe: FATAL: Module v4l2loopback not found in directory /lib/modules/5.15.49-linuxkit

I tried making v4l2loopback from the github repository using make, but I still get the same error.

0

There are 0 answers