cleanup-update.sh: use explicity cleanup cmds
In order to ensure that we remove non-running
containers and all dangling images, let's explicitly
call 'docker [image|container] prune' instead of
relying on 'docker system' to figure out the
right thing to do.
Signed-off-by: Kelley Spoon <kelley.spoon@linaro.org>
Change-Id: Ifbdfe65b9a5b949296de309f7cdf1e7386780d45
diff --git a/ci-dockerfiles-deployment/cleanup-update.sh b/ci-dockerfiles-deployment/cleanup-update.sh
index 7506527..53d5210 100644
--- a/ci-dockerfiles-deployment/cleanup-update.sh
+++ b/ci-dockerfiles-deployment/cleanup-update.sh
@@ -11,4 +11,7 @@
done
echo cleaning up
-docker system prune
+# cleans up non-running containers, unused networks
+docker container prune -f
+# clean up *dangling* images
+docker image prune -f