diff options
Diffstat (limited to 'extras/hs-test')
-rwxr-xr-x | extras/hs-test/script/build.sh | 6 |
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 |