How does centos installed in docker bring its own image? How to add tasks automatically after restart?

  linux, question

Docker seems to have lost everything after restarting.
Let docker restart and automatically run the tasks in the original crontab
How?

In short,
How does docker’s centos Bring crontab
How does the original crontab content automatically load into the new docker after the docker restarts

Add command to dockerfile to add the contents of the scheduled task to the container.