mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 04:22:11 +00:00
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 "^<none>" | awk '{print $3}')
This commit is contained in:
parent
bd47901cde
commit
b5313b1100
1 changed files with 2 additions and 1 deletions
|
@ -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 "^<none>" | awk '{print $3}')
|
||||
for i in $myIMAGES
|
||||
do
|
||||
service $i start
|
||||
|
|
Loading…
Reference in a new issue