There are other options for running Motion on Docker containers out there. There are even containers for MotionEye, with the nice front-end, for example from the official repository: https://github.com/ccrisan/motioneye/wiki/Install-In-Docker
This is a Docker image based on debian:stable-slim
that has
Motion - a highly configurable program
that monitors video signals from many types of cameras.
To bring-up the container, run:
docker run --rm -d --name motion --device /dev/video0:/dev/video0 -p 8081:8081 leograba/motion:latest
Open a web browser on localhost:8081, you will see your camera stream with low resolution and low fps. This is the default motion config.
You can use the sample docker-compose.yml
as well, but you must create or
download the file first:
git clone https://github.com/leograba/motion-docker.git
cd motion-docker
docker-compose up
If you don't have git
but have wget
and unzip
:
wget https://github.com/leograba/motion-docker/archive/master.zip
unzip master.zip && rm master.zip
cd motion-docker-master
docker-compose up
It is built for the following architectures:
- x86_64
- armv7
- aarch64