Merge pull request #7067 from nextcloud/enh/6410/improve-docker-image-prune

docker-image-prune: only remove image with `label=org.label-schema.vendor=Nextcloud`
This commit is contained in:
Simon L. 2025-11-04 13:51:47 +01:00 committed by GitHub
commit 981d5b6092
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,7 +60,7 @@ while true; do
fi
# Remove dangling images
sudo -u www-data docker image prune --force
sudo -u www-data docker image prune --filter "label=org.label-schema.vendor=Nextcloud" --force
# Check for available free space
sudo -u www-data php /var/www/docker-aio/php/src/Cron/CheckFreeDiskSpace.php