cleanup dangling images on make rm
Change-Id: Iab64acda90bf5de29732ff6c1b4bdc4361370f42
diff --git a/frontend/Makefile b/frontend/Makefile
index 128cc87..b0f02c8 100644
--- a/frontend/Makefile
+++ b/frontend/Makefile
@@ -74,6 +74,7 @@
rm: stop
test ! -s $(DOCKER_COMPOSE_YML) || sudo docker-compose -p $(DOCKER_PROJECT) -f $(DOCKER_COMPOSE_YML) rm -f
sudo docker-compose -p $(BOOTSTRAP_PROJECT) -f $(BOOTSTRAP_YML) rm -f
+ [ -n "$(shell docker images -f \"dangling=true\" -q)" ] && docker rmi $(shell docker images -f "dangling=true" -q) || true
ps:
sudo docker-compose ps