0

Is there any way to remove the docker containers that are running|created for more than 8hrs?

raghunath
  • 31
  • 5
  • An obvious solution is to run a cron job that runs every few minutes and brutally murders them if they go over 8 hours, but I'm assuming you want something cleaner. – Barry Carter Aug 01 '22 at 14:14
  • Take a look at this [post](https://stackoverflow.com/questions/71809040/how-to-filter-docker-containers-by-running-time). It´s a nice and simple script. – meliodas Aug 02 '22 at 14:49

0 Answers0