docker run --ipc=host --device=/dev/video0:/dev/video0 -v /tmp/.X11-unix/:/tmp/.X11-unix -it -e DISPLAY=$DISPLAY debian:12
--ipc=host for the camera to actually work in the container. After doing the above, I was able to make my camera work in OBS Studio from the container.
--device=/dev/video0:/dev/video0 # I assume your camera is /dev/video0 if not change it.
-v /tmp/.X11-unix/:/tmp/.X11-unix -it -e DISPLAY=$DISPLAY obsstudio-areeb # this maps your X11 into the container so your GUI apps will work and show.
By using these kinds of methods you can get almost any GUI and hardware application working inside a Docker container.
webcam, docker, obs, etc, ipc, dev, tmp, unix, display, debian, container, obsstudio, areeb, maps, gui, apps, methods, hardware,