1. Add scheduled task vim /etc/crontab */1 * * * * root /opt/clean_docker_log/clean_docker_log.sh 2. Systemctl restart crond (2) Ubuntu: Tail -f /var/log/cron.log 4. Set the scheduled task to automatic startup systemctl enable crondCopy the code