Replaced command that pruned non-setup BW imagess because combining positive and negative filters with `docker prune` seems to be broken in Docker Desktop.
Added switch to purge function to allow all BW images to be purged (dont exclude setup image) during uninstall.
Added verbiage to clarify purge behavior.
@ -217,10 +223,10 @@ function Uninstall() {
@@ -217,10 +223,10 @@ function Uninstall() {
}
Write-Host"(!) "-fred-nonewline
$purgeAction=$(Read-Host"Would you like to purge all local Bitwarden container images? (y/n)")
$purgeAction=$(Read-Host"Would you like to purge all local Bitwarden container images (this will not remove third-party images such as certbot)? (y/n)")
for image in $(docker image ls --format "{{.Repository}}:{{.Tag}}" --filter="label=com.bitwarden.product=bitwarden"| grep -v '/bitwarden/setup');do
docker image rm "$image"
done
fi
}
function updateLetsEncrypt(){
@ -274,11 +281,11 @@ function uninstall() {
@@ -274,11 +281,11 @@ function uninstall() {
exit1
fi
echo -e -n "${RED}(!) Would you like to purge all local Bitwarden container images? (y/n): ${NC}"
echo -e -n "${RED}(!) Would you like to purge all local Bitwarden container images (this will not remove third-party images such as certbot)? (y/n): ${NC}"