From 42bb1c809209be6435f774e56bbacd5843752976 Mon Sep 17 00:00:00 2001 From: Daniel Lindenfelser Date: Thu, 19 Feb 2026 17:49:36 +0100 Subject: [PATCH] Fix upgrade-containers to only pull images from active containers Use podman ps instead of podman images to avoid pulling dangling entries and stale unused images. Co-Authored-By: Claude Opus 4.6 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 57ebdb2..40e2f0c 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ upgrade-containers: @echo "Upgrading containers on fileserver..." @echo "======================================" @echo "Pulling latest images..." - ssh $(FILESERVER_HOST) "sudo podman images --format '{{.Repository}}:{{.Tag}}' | grep -v localhost | xargs -I{} sudo podman pull {}" + ssh $(FILESERVER_HOST) "sudo podman ps -a --format '{{.Image}}' | sort -u | grep -v localhost | xargs -I{} sudo podman pull {}" @echo "Restarting containers..." ssh $(FILESERVER_HOST) "sudo systemctl restart podman-filebrowser podman-gitea" @echo "✓ Containers upgraded successfully"