bazzite/just_scripts/cleanup-images.sh
m2 532190ecce
feat(dev): add easy local iso and vscode integration (#1127)
* feat(dev): add easy local iso and vscode integration

* fix: remove unused variables.
2024-05-15 09:43:05 -07:00

16 lines
354 B
Bash
Executable File

#!/usr/bin/bash
set -euox pipefail
container_mgr=(
docker
podman
podman-remote
)
for i in "${container_mgr[@]}"; do
if [[ $(command -v "$i") ]]; then
echo "Container Manager: ${i}"
ID=$(${i} images --filter "reference=localhost/bazzite*-build")
xargs -I {} "${i}" image rm {} <<< "$ID"
echo ""
fi
done