How to run a Cronjob inside Docker is demonstrated in a beginner's tutorial by TecAdmin.
Running a Cronjob Inside Docker: A Beginner's Guide
When it comes to scheduling jobs and programs that automatically run at set intervals or can be triggered by another event, you have plenty of options. You can use a general-purpose utility like cron, the built-in scheduler in macOS or Linux, or a specialized tool like AWS Lambda. Cron, though not as powerful as AWS.
Running a Cronjob Inside Docker: A Beginner's Guide – TecAdmin