Cron tasks work in a Docker container.
However,
you have to manually start the cron deamon (root or sudo required) using cron
or sudo cron
if it is not configured (via the Docker entrypoint) to start on the start of the Docker container.
For tutorials on crontab,
please refer to the post
Schedule Task Using Cron in Linux
.