尝试构建安装了 v4l2loopback 的 docker 映像,但在安装后无法对其进行 modprobe。
尝试使用 buildx 构建后出现此错误
FATAL: Module v4l2loopback not found in directory /lib/modules/5.4.0-1038-aws
FROM arm64v8/ubuntu:bionic
RUN apt install -y v4l2loopback-dkms
RUN apt install -y v4l2loopback-utils
RUN modprobe v4l2loopback
我也尝试从源代码构建
RUN git clone https://github.com/umlaeute/v4l2loopback.git
WORKDIR /home/v4l2loopback
RUN make && make install
RUN depmod -a
RUN modprobe v4l2loopback
但无法构建它
make[1]: *** /lib/modules/5.4.0-1038-aws/build: No such file or directory.