VideoCapture Doesn´t work in docker container

Hello everybody

In this moment i am developing microservice with java and openCV, i am using VideoCapture for image capture directly from device camera, but, when i tried to use The microservice since docker, i obtained this error

[ WARN:1@35.182] global /home/runner/work/opencv/opencv/opencv-4.6.0/modules/videoio/src/cap_v4l.cpp (902) open VIDEOIO(V4L2:/dev/video0): can't open camera by index

The microservice started in docker container, but the VideoCapture not, this is my dockerfile

FROM openjdk:17
WORKDIR /Faceregister
COPY "./target/FaceRegister-0.0.1-SNAPSHOT.jar" "FaceRegister.jar"
COPY "./opencv_java460.dll" .
COPY "./haarcascade_frontalface_alt.xml" .
COPY "./opencv" .
ENTRYPOINT ["java", "-jar", "FaceRegister.jar"]

if somebody can help me please.

that’s a general problem with docker and devices of all kinds.

this is not specific to opencv.

please ask somewhere that is responsible for docker.

Ok, i understood, i will do the same question in a docker forum. Thanks