From b5313b1100e619d35b098b36467fd8f4b1e1371e Mon Sep 17 00:00:00 2001 From: t3chn0m4g3 Date: Thu, 19 Feb 2015 16:37:45 +0100 Subject: [PATCH] Clean up untagged images If newer image versions will be downloaded the old ones will be untagged and thus will be deleted using $ docker rmi $(docker images | grep "^" | awk '{print $3}') --- installer/bin/dcres.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/bin/dcres.sh b/installer/bin/dcres.sh index 87353a9d..b4ffa4a5 100755 --- a/installer/bin/dcres.sh +++ b/installer/bin/dcres.sh @@ -4,7 +4,7 @@ # T-Pot Community Edition # # Container and services restart script # # # -# v0.12 by mo, DTAG, 2015-02-05 # +# v0.13 by mo, DTAG, 2015-02-19 # ######################################################## if [ -a /var/run/check.lock ]; @@ -37,6 +37,7 @@ if [ $myUPTIME -gt 5 ]; sleep 0.1 done docker rm $(docker ps -aq) + docker rmi $(docker images | grep "^" | awk '{print $3}') for i in $myIMAGES do service $i start