1
0

Add BTCPAY_UPDATE_CLEAN environment option

This commit provides a less-intrusive pruning of all images after
running an update.

Ideally, there would be a better prune filter but that appears to
require more granular tracking of images; including
btcpayserver/docker-compose-generator (which only pulls from latest).

This option should suffice for the time being.
This commit is contained in:
2025-11-14 17:00:20 -08:00
parent af3d32e5c7
commit bf518660c7
4 changed files with 6 additions and 1 deletions

View File

@@ -80,4 +80,4 @@ btcpay_update_docker_env
btcpay_up
set +e
docker image prune -af --filter "label!=org.btcpayserver.image=docker-compose-generator"
[ "$BTCPAY_UPDATE_CLEAN" == true ] && ./btcpay-clean.sh || exit 0