Turn Raspberry Pi into Real-Time CCTV Camera in 5 Min Using Docker


Raspberry pi 3 ports

CSI Camera Connector

Connect Camera Module to Pi :

connect camera module

Enter Command $sudo raspi-config (select interfacing Options :

select Interface Options
select camera and enable

Install Latest Version of Docker 19.03

root@raspberrypi:~# curl -sSL https://get.docker.com/ | sh

Clone Project

git clone https://github.com/sangam14/docker-cctv-raspbian

cd docker-cctv-raspbian

Build Dockerfile

Docker build -t engineitops/docker-cctv-raspbian .

before running the run.sh setup the camera driver :

sudo modprobe bcm2835-v4l2

Run the Script

sh run.sh 

it’s running on localhost:8081

Congratulations !! You Turned PI to CCTV in Minutes

You may also like...

Leave a Reply

Your email address will not be published.