diff scripts/updates-cleanup.sh @ 53:f3773b50a88e

add cleanup script to remove obsolete images
author Dave smith <smith@nwoca.org>
date Mon, 22 Feb 2016 21:21:16 -0500
parents
children 334d65dac778
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/updates-cleanup.sh	Mon Feb 22 21:21:16 2016 -0500
@@ -0,0 +1,6 @@
+#
+# Safely removes obsolete images from previous SSDT versions.
+#
+
+docker images --filter "label=io.ssdt.app" --filter "dangling=true" -q | xargs docker rmi
+