changeset 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 9832111e8d7c
children 334d65dac778
files scripts/updates-cleanup.sh
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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
+