Cron and Crontab files not executed in Docker Cron and Crontab files not executed in Docker docker docker

Cron and Crontab files not executed in Docker


Cron (at least in Debian) does not execute crontabs with more than 1 hardlink, see bug 647193. As Docker uses overlays, it results with more than one link to the file, so you have to touch it in your startup script, so the link is severed:

touch /etc/crontab /etc/cron.*/*