Skip to content

Sharing webcam with container

mviereck edited this page Dec 8, 2019 · 2 revisions

How to share webcam with container

This one is easy: Share all files /dev/video*. At least you need --device /dev/video0.

x11docker provides this with option --webcam.

Application specific issues:

  • cheese needs systemd in container and privileged access to host. Use another webcam application.
  • guvcview needs a working container sound setup.
  • You may need to provide some hardware information with --volume /run/udev/data:/run/udev/data:ro.
Clone this wiki locally