From e08fdf316a750049b11898b833fdd6dc4c742c3f Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Wed, 26 Apr 2023 18:03:35 +0200 Subject: hs-test: remove untagged images after build Type: test Signed-off-by: Filip Tehlar Change-Id: I55731fa546df01ac4bd327b444ac1a5c2052bed1 --- extras/hs-test/script/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extras/hs-test/script/build.sh b/extras/hs-test/script/build.sh index 97278eb4919..398cdd71fc3 100755 --- a/extras/hs-test/script/build.sh +++ b/extras/hs-test/script/build.sh @@ -62,3 +62,9 @@ docker_build () { docker_build hs-test/vpp vpp docker_build hs-test/nginx-ldp nginx docker_build hs-test/nginx-server nginx-server + +# cleanup detached images +images=$(docker images --filter "dangling=true" -q --no-trunc) +if [ "$images" != "" ]; then + docker rmi $images +fi -- cgit 1.2.3-korg