Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 10 characters in body
Source Link
chicks
  • 1.9k
  • 1
  • 12
  • 29

Can someone help me on how to clean up containers and images which are 3 months older automatically by using crontab scheduling.? Which type of method need to use for automation.? I have manually tried deleting by using below commands and it worked but I need to automate it, to perform action for every 3 months without manual action.

docker image prune  --force --filter “until=2020-01-01T00:00:00” docker container prune  --force --filter “until=2020-01-01T00:00:00”

docker image prune  --force --filter “until=2020-01-01T00:00:00”
docker container prune  --force --filter “until=2020-01-01T00:00:00”

Can someone help me on how to clean up containers and images which are 3 months older automatically by using crontab scheduling. Which type of method need to use for automation. I have manually tried deleting by using below commands and it worked but I need to automate it, to perform action for every 3 months without manual action.

docker image prune  --force --filter “until=2020-01-01T00:00:00” docker container prune  --force --filter “until=2020-01-01T00:00:00”

Can someone help me on how to clean up containers and images which are 3 months older automatically by using crontab scheduling? Which type of method need to use for automation? I have manually tried deleting by using below commands and it worked but I need to automate it, to perform action for every 3 months without manual action.

docker image prune  --force --filter “until=2020-01-01T00:00:00”
docker container prune  --force --filter “until=2020-01-01T00:00:00”
Source Link

How to automate docker prune commands using crontab

Can someone help me on how to clean up containers and images which are 3 months older automatically by using crontab scheduling. Which type of method need to use for automation. I have manually tried deleting by using below commands and it worked but I need to automate it, to perform action for every 3 months without manual action.

docker image prune  --force --filter “until=2020-01-01T00:00:00” docker container prune  --force --filter “until=2020-01-01T00:00:00”