aboutsummaryrefslogtreecommitdiffstats
path: root/extras/hs-test
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2023-04-26 18:03:35 +0200
committerFilip Tehlar <ftehlar@cisco.com>2023-04-26 18:03:35 +0200
commite08fdf316a750049b11898b833fdd6dc4c742c3f (patch)
treed64c9f15f97131818353919e9904ab30335e4fe0 /extras/hs-test
parentad92743925f1bcf706c39b536393aaecd12de661 (diff)
hs-test: remove untagged images after build
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I55731fa546df01ac4bd327b444ac1a5c2052bed1
Diffstat (limited to 'extras/hs-test')
-rwxr-xr-xextras/hs-test/script/build.sh6
1 files changed, 6 insertions, 0 deletions
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