https://tecadmin.net/install-crontab-in-linux/
yum -y install cronie
cat /var/spool/cron/root
*/1 * * * * echo 2 >> /tmp/2
start crond
crond
help
crond: invalid option -- '-'
Usage:
crond [options]
Options:
-h print this message
-i deamon runs without inotify support
-m <comm> off, or specify preferred client for sending mails
-n run in foreground
-p permit any crontab
-P use PATH="/usr/bin:/bin"
-c enable clustering support
-s log into syslog instead of sending mails
-V print version and exit
-x <flag> print debug information
COPY ./hello-cron /etc/cron.d/hello-cron
RUN chmod 0644 /etc/cron.d/hello-cron
RUN crontab /etc/cron.d/hello-cron