This commit is contained in:
ed 2023-03-05 20:18:16 +00:00
parent d00f0b9fa7
commit c39c93725f
3 changed files with 46 additions and 5 deletions

View file

@ -43,11 +43,11 @@ filt=
[ $purge ] && filt='NR>1{print$3}'
[ $filt ] && {
[ $purge ] && {
podman kill $(podman ps -q)
podman rm $(podman ps -qa)
podman kill $(podman ps -q) || true
podman rm $(podman ps -qa) || true
}
podman rmi -f $(podman images -a --history | awk "$filt") || true
podman rmi $(podman images -a --history | awk '/^<none>.*<none>.*-tmp:/{print$3}')
podman rmi $(podman images -a --history | awk '/^<none>.*<none>.*-tmp:/{print$3}') || true
}
[ $pull ] && {