mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-28 00:17:39 +00:00
16 lines
354 B
Bash
16 lines
354 B
Bash
|
#!/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
|