https://github.com/mje-nz/rpi-docker-cron
Very simple Docker cron image for Raspberry Pi
https://github.com/mje-nz/rpi-docker-cron
cron docker raspberry-pi
Last synced: about 2 months ago
JSON representation
Very simple Docker cron image for Raspberry Pi
- Host: GitHub
- URL: https://github.com/mje-nz/rpi-docker-cron
- Owner: mje-nz
- Created: 2016-12-22T21:55:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-05T02:30:34.000Z (about 9 years ago)
- Last Synced: 2026-02-15T06:20:39.043Z (4 months ago)
- Topics: cron, docker, raspberry-pi
- Language: Shell
- Homepage: https://hub.docker.com/r/mjenz/rpi-cron/
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
Docker cron image for Raspberry Pi
==================================
[](https://microbadger.com/images/mjenz/rpi-cron "Get your own image badge on microbadger.com")
To use this image directly, just mount a crontab file as /crontab.
e.g.
```
docker run -t --rm -v $(pwd)/crontab.demo:/crontab:ro mjenz/rpi-cron
```
To use this as a base image, copy in your crontab file as /crontab.
Implementation details
----------------------
This image uses the Busybox crond from Alpine.
Crond loads files in its spool directory with the same name as a local user.
Tasks in each file are run as the user it is named after, so the only filename that makes sense in this case is 'root'.
Changing the spool directory isn't working for me for some reason, so I'm copying /crontab to /etc/crontabs/root.
Unlike other versions of crond, the Busybox version doesn't care about file ownership or permissions.