docker stack: is it possible to set it to automatically refresh containers after some maximum lifetime?

193 views Asked by At

I would like containers in one of my docker stack services to automatically be refreshed every hour.

I start with 3 instances, and every hour I would like them to be replaced with new instances one at a time, serially.

Is there a way to achieve this with docker-compose? Or alternatively with a cron job?

Thanks!

0

There are 0 answers