I’ve tried to setup some cron task on rancher OS with ubuntu console enabled.
Everything seems ok but the task is never executed, even with a * * * * * plannification (each minute).
I’ve tested with different installations of Rancher OS (0.4.2 & 0.4.3) with the same result…
Is it normal (I.E. have RancherOS a specificity that explain why crond doesn’t work properly) ?
Well, I ended up just setting things up so my Build Server running Ubuntu with a Jenkins Container just SSH’s into Rancher and runs the backup script as a part of the Build Server’s own backup cron job. Not a great work around, but it gets the job done.
Thanks! That’s a good way to do it with RancherOS … having a crond running on reboot and a “persistent” crontab were just what I missed for running my docker routines that update images, remove exited docker processes and untagged images etc…