RPi-compatible Docker Image - example usage of a cron job in a container
1.5K
Simple CRON image based on hypriot/rpi-cron-example
Minimal debian image to schedule scripts in a docker image. This image is intented to be used with docker-compose.
Requirement : mount a volume on /etc/cron.d
Example crontab file :
#
# Every 5 minutes
*/5 * * * * root bash /scripts/update_duck_dns.sh >> /var/log/cron.log 2>&1
Example docker-compose file :
version: "2.0"
services:
cron:
image: amaelh/rpi-cron
restart: always
volumes:
- "./conf/crontab:/etc/cron.d"
- "./scripts/:/scripts"
Content type
Image
Digest
Size
90.2 MB
Last updated
over 6 years ago
docker pull amaelh/rpi-cron