This is lightweight cron with python executes a single crontab entry
The crontab entry must be passed as CRON_ENTRY environment variable
This will print hello world every minute
docker run -e "CRON_ENTRY=* * * * * echo hello world" pollett/python-cron
This will invoke a python script every minute
docker run -e "CRON_ENTRY=* * * * * python /app/script.py" pollett/python-cron
Based on: https://hub.docker.com/r/lodatol/cron/
Content type
Image
Digest
sha256:c110b740f…
Size
22.6 MB
Last updated
over 3 years ago
docker pull pollett/python-cron:3