Konubinix' opinionated web of thoughts

Run Cron in Alpine

Fleeting

set up a cron container fairly simply. Here’s an example Dockerfile that should do the job:

FROM alpine COPY ./crontab /etc/crontab RUN crontab /etc/crontab RUN touch /var/log/cron.log CMD crond -f

https://stackoverflow.com/questions/56803812/how-can-i-run-a-cron-in-mariadb-container/56804227#56804227

Why don’t my cron jobs run? Start service crond and add it to the default runlevel:

https://wiki.alpinelinux.org/wiki/Alpine_Linux:FAQ#My_cron_jobs_don.27t_run.3F