Docker re-create with cron

Hello.

I am trying to think of an easy way to re-create and execute (Start) the docker every 24 hours.
If there is a way at all.

I have a project, that seems to log too much stuff (Unintentionally) sadly I can’t disable it.
But by re-creating the docker container it clears the log file.

Is there any way to do so with CyberPanel?

This is something hard to do from corn it is tough and critical thing to do