Skip to content

Docker image for running a webcam stream from a Raspberry Pi

Notifications You must be signed in to change notification settings

pederka/raspberry-camera-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Docker container for Raspberry Pi webcam stream

Runs a simple webcam stream from a Raspberry Pi with an onboard camera module.

Building image

If you just want to run the camera stream, it is recommended to pull the image directly from Dockerhub as described below. If you want to build the image yourself, for example if you make changes to the Dockerfile, do the following:

git clone https://github.com/pederka/raspberry-camera-docker.git
cd raspberry-camera-docker
sudo docker build . -t raspberry-camera-stream

Running image on a Raspberry pi

Requirements

Preparation

Plug in and enable the camera module, following a guide like this one.

Install Docker on the Raspberry pi

One-line command for installing Docker on a Raspberry Pi running raspbian:

curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh

Pull the Docker image

Pull the pre-built Docker image from its Dockerhub repository:

sudo docker pull pederaursand/raspberry-camera-stream

Run the image

On a running Raspberry Pi with the camera enabled, a webcam stream can be set up by running the image as follows:

sudo docker run -p 8080:8080 --privileged -t pederaursand/raspberry-camera-stream

The live stream will now be available on the local network under http://<raspberry-ip>:8080

About

Docker image for running a webcam stream from a Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published