How to use KERBEROS.IO with Docker and Raspberry Pi to monitor multiple IP Cameras

KERBEROS.IO is a fantastic open source DIY video recording and monitoring solution. The default Raspberry Pi Setup only supports a single camera. Recently Kerberos.io introduced a docker option and now you can install multiple instances of Kerberos.io with docker and have as many cameras as you want.

The documentation for installing the Kerberos docker images kinda assumes you already know how to get Docker onto your Raspberry Pi and doesn’t really start from ground zero. Follow along below if you need the background steps to get up and running. You will need some basic knowledge of networking and SSH.

  1. Head over to raspberrypi.org and download the RASPBIAN STRETCH LITE image.
  2. Follow the Rasbian install guide to install the Image to your Raspberry Pi SD card.
  3. Before you take the card out of your computer and stick it in the Raspberry Pi you need to open the boot directory of the SSD you just imaged on your computer and add a blank text file named “ssh” to the root folder. No file extension just “ssh”. More detailed guide here.
    rasbian-enable-ssb-htgsd-com
  4. Chuck the SD card in the RPI and boot it up
  5. Make sure you know what the IP for your RPI is (you’d need to find this by checking your routers DHCP table to see what IP the RPI has been assigned, or by actually watching the logs by plugging your RPI into a monitor with HDMI while it’s booting up. As this is really basic stuff I’m not going to explain it here – if you can’t find an IP then working with an RPI is going to be a tall order.
  6. SSH to the RPI using the IP in step 5
    Username: pi
    Password: raspberry
  7. run the following command
    curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
  8. Let docker install
  9. Once it’s finished you can follow the instructions to add your user to the docker group if you choose. The instructions for that will already be on your screen when the install completes.
  10. Add your first Kerberos.io container
    docker run --name camera1 -p 80:80 -p 8889:8889 -d kerberos/kerberos
  11. Once it’s done you will be able to access Kerberos at <<IP from step 5>> – i.e. http://192.168.1.40/
  12. Login and setup your camera as you normally would
  13. You can now install additional Kerberos containers but you need to make sure the ports don’t conflict.
    docker run --name camera2 -p 81:80 -p 8890:8889 -d kerberos/kerberos
    docker run --name camera3 -p 82:80 -p 8891:8889 -d kerberos/kerberos
  14. Pay close attention to the ports i.e. -p 81:80 -p 8890:8889 you must increment these for each additional RPI so keep track of it somewhere.
  15. In the example above you can access camera2 and camera3 using the following URLs
    http://192.168.1.40:81
    http://192.168.1.40:82
  16. Additionally with a Kerberos Cloud account you can have all of your different cameras send their motion detections to the cloud and access them anywhere via a browser or your phone. This also allows more complex analysis of the detections such as identifying if it’s a car, pedestrian, etc. Setup of live notifications to slack / phone / etc.
  17. Finally, it’s a great open source project supported by a small project team and it’s good to support people like that who are making a great product!

Comments

  1. By Mike

    Reply

    • By V5

      Reply

  2. By Óscar Ornelas

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.