lib/kamal/commands/prune.rb in kamal-1.3.1 vs lib/kamal/commands/prune.rb in kamal-1.4.0

- old
+ new

@@ -11,13 +11,13 @@ docker(:image, :ls, *service_filter, "--format", "'{{.ID}} {{.Repository}}:{{.Tag}}'"), "grep -v -w \"#{active_image_list}\"", "while read image tag; do docker rmi $tag; done" end - def app_containers(keep_last: 5) + def app_containers(retain:) pipe \ docker(:ps, "-q", "-a", *service_filter, *stopped_containers_filters), - "tail -n +#{keep_last + 1}", + "tail -n +#{retain + 1}", "while read container_id; do docker rm $container_id; done" end def healthcheck_containers docker :container, :prune, "--force", *healthcheck_service_filter