Prune all unused images matching time filter

This commit is contained in:
David Heinemeier Hansson
2023-02-15 13:32:50 +01:00
parent 244cf8b3b7
commit dc68639dfa
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ class Mrsk::Commands::Prune < Mrsk::Commands::Base
PRUNE_CONTAINERS_AFTER = 3.days.in_hours.to_i
def images
docker :image, :prune, "--force", "--filter", "until=#{PRUNE_IMAGES_AFTER}h"
docker :image, :prune, "--all", "--force", "--filter", "until=#{PRUNE_IMAGES_AFTER}h"
end
def containers