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