容器中的cron定时计划任务不执行
排查一:检查Container容器是否安装cron
# rpm -qa | grep cron
# ls /etc/init.d/
若没有安装,则进行安装
# yum update -y or apt update -y
# yum install cron or apt install cron
安装完成后并启动
# systemctl start cron or service cron start or /etc/init.d/cron start
排查二:Container容器安装了cron,检查是否启动
# ps aux | grep cron
若没有启动,则执行启动命令
# systemctl start cron or /etc/init.d/cron start
排查三:查看/var/log/cron目录对应的日志
# cd /var/log/cron
原文:https://www.cnblogs.com/l-mac/p/11397477.html