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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user