From 6e3f3b8d24e39a7422e520f40b149c77563c6bec Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Wed, 20 Apr 2016 18:44:22 +0200 Subject: [PATCH] restart docker service to avoid race ... ... if images have been deleted. --- installer/bin/update-images.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/installer/bin/update-images.sh b/installer/bin/update-images.sh index ad99cc2a..ebd5cf0c 100755 --- a/installer/bin/update-images.sh +++ b/installer/bin/update-images.sh @@ -4,7 +4,7 @@ # T-Pot # # Only start the containers found in /etc/init/ # # # -# v16.03.1 by mo, DTAG, 2016-03-09 # +# v16.03.2 by mo, DTAG, 2016-04-20 # ######################################################## # Make sure not to interrupt a check @@ -41,6 +41,13 @@ for i in $(cat /data/imgcfg/all_images.conf); rm -rf /etc/init/$i.conf || true; done +# Restarting docker services +echo "### Restarting docker services ..." +service docker stop +sleep 2 +service docker start +sleep 2 + # Setup only T-Pot upstart scripts from images.conf and pull the images for i in $(cat /data/images.conf); do