I have installed cron via apt-get install cron
Trying to start cron fails (as expected) because of upstart not running.
What is the command line for starting cron properly (i.e. it will read users' crontabs, will read /etc/crontab/* etc)?
Please note that I do not want to start the container as a "full" machine, so I don't want to run /sbin/init or upstart. I manage the processes via supervisord, so what I 'm missing is the command line to add to its configuration file.
One way to create scheduled tasks for your containers is by using the host's crontab. Since the definition of each cron job allows you to execute commands, you can use Docker Engine in the same way you would the command line.
You can run cron without daemon mode.
root@xxxxxx:~# cron -f I was just trying to test it:
apt-get install cron nano screengetty tty -a rootscreen, in screen I created 2 terminals:cron -f crontab -e - edit your crontab, save and you can watch that the cron is working ...If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With