Tag images with service label so we can prune exclusively

This commit is contained in:
David Heinemeier Hansson
2023-02-15 13:41:03 +01:00
parent 90f4212a68
commit 8ec94f105c
4 changed files with 20 additions and 16 deletions

View File

@@ -10,7 +10,7 @@ class CommandsPruneTest < ActiveSupport::TestCase
test "images" do
assert_equal \
"docker image prune --all --force --filter until=168h",
"docker image prune --all --force --filter label=service=app --filter until=168h",
new_command.images.join(" ")
end