motion
This container has the releases of Motion Projects application Motion. See: https://github.com/Motion-Project/motion
The source Dockerfile to build this package is available here: https://git.crc.id.au/netwiz/motion-docker
Docker run
docker run -d --name=motion \
-p 8000:8000 \
-p 8001:8001 \
-e TZ="Australia/Melbourne" \
-v /etc/localtime:/etc/localtime:ro \
-v motion-config:/usr/local/etc/motion \
--restart=always \
crcinau/motion:latest
Via docker-compose.yml
version: "2.4"
services:
motion:
image: crcinau/motion:latest
container_name: motion
networks:
- motion
expose:
- "8001:8001"
ports:
- "8000:8000"
- "8001:8001"
restart: "always"
ulimits:
nofile:
soft: 1024
hard: 1024
volumes:
- /etc/localtime:/etc/localtime:ro
- motion-config:/usr/local/etc/motion
How to Update
# docker stop motion
# docker rm motion
# docker pull crcinau/motion:latest
or to update with a docker-compose.yml via Docker Compose V2:
# docker compose pull
# docker compose up -d
Things you may need to change
name = a label for the container, should be motion or motion-project (but can be anything)
ports = each -p line denotes 1 camera and its stream port
Add another volume mapped to /var/lib/motion/ to save videos / pictures.
Configuration
Jump into /var/lib/docker/volumes/motion-config/_data (or similar) and edit your configuration as required.
Link to official documentation: https://motion-project.github.io/motion_config.html#configfiles
Content type
Image
Digest
sha256:c6b4bbf54…
Size
54.7 MB
Last updated
over 1 year ago
docker pull crcinau/motion