From 507253769b19131f2e7a1b5ad64e807efc5e1b24 Mon Sep 17 00:00:00 2001 From: Thomas Juerges <203795-tjuerges@users.noreply.gitlab.com> Date: Tue, 25 May 2021 16:25:20 +0200 Subject: [PATCH] L2SS-2256: Wow: I overlooked that I need to use the IDs of the images --- bootstrap/sbin/rebuild_system_from_scratch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/sbin/rebuild_system_from_scratch.sh b/bootstrap/sbin/rebuild_system_from_scratch.sh index ceefc1af0..48ccf2dda 100755 --- a/bootstrap/sbin/rebuild_system_from_scratch.sh +++ b/bootstrap/sbin/rebuild_system_from_scratch.sh @@ -49,7 +49,7 @@ function move_tango_dir_out_of_the_way() function remove_images() { - images="$(for i in $(docker images | egrep -v "REPOSITORY" | awk '{printf "%s:%s\n", $1, $2}'); do printf "%s " ${i}; done)" + images="$(for i in $(docker images -q); do printf "%s " ${i}; done)" if [ ${#images} -eq 0 ]; then echo -e "\tThere are no images to delete." else -- GitLab