summaryrefslogtreecommitdiff
path: root/utils/lxc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/lxc.sh')
-rwxr-xr-xutils/lxc.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/lxc.sh b/utils/lxc.sh
index b03ce2af8..2526a257d 100755
--- a/utils/lxc.sh
+++ b/utils/lxc.sh
@@ -324,6 +324,13 @@ lxc_delete_images_localy() {
lxc_delete_local_image "$i"
done
fi
+
+ for i in $(lxc image list --format csv | grep '^,' | sed 's/,\([^,]*\).*$/\1/'); do
+ if ask_yn "Image $i has no alias, do you want to delete the image?" Yn; then
+ lxc_delete_local_image "$i"
+ fi
+ done
+
echo
lxc image list local:
}