<p>I have 3 vps with docker installed. I have created a docker image and I would like to know if there is a possibility to configure docker or docker-compose in such a way that these 3 containers run only once a day at random hours.</p>
<p>I have not found any way other than to configure the command to start the docker in a bash script, called from the Linux crontab, which waits for a while at random. Are there better better solutions?
Maybe k8s / k3s?</p>

Marco Paggioro
<p><em>This is a community wiki answer posted for better visibility. Feel free to expand it.</em></p>
<p>Possible solutions to this problem are listed below.</p>
<p><strong>Docker</strong></p>
<p>Bash script, which is called from Linux crontab to start Docker.</p>
<p><strong>Kubernetes</strong></p>
<p>Since Docker / Docker-compose does't have its own way of scheduling a container to run at random time, CronJob might be the easiest way to do this.</p>
<p>More information about CronJobs is available in <a href="https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/" rel="nofollow noreferrer">the official documentation</a></p>
