Fix upgrade-containers to only pull images from active containers

Use podman ps instead of podman images to avoid pulling dangling
<none> entries and stale unused images.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-19 17:49:36 +01:00
parent fe7182291b
commit 42bb1c8092
+1 -1
View File
@@ -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"