Skip to content

How to simply access the camera from a Dockerfile

Notifications You must be signed in to change notification settings

KiriGould/cameraAccesss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cameraAccesss

How to simply access the camera from a Dockerfile

To run

xhost +local:
sudo docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --device=/dev/video0:/dev/video0 my_image

For people using podman, use the following command

sudo podman run --security-opt label=disable -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --device=/dev/video0:/dev/video0 my_image

after running, one should set

xhost -local:

About

How to simply access the camera from a Dockerfile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published