restart docker service to avoid race ...

... if images have been deleted.
This commit is contained in:
Marco Ochse 2016-04-20 18:44:22 +02:00
parent 61cb968deb
commit 6e3f3b8d24

View file

@ -4,7 +4,7 @@
# T-Pot # # T-Pot #
# Only start the containers found in /etc/init/ # # 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 # 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; rm -rf /etc/init/$i.conf || true;
done 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 # Setup only T-Pot upstart scripts from images.conf and pull the images
for i in $(cat /data/images.conf); for i in $(cat /data/images.conf);
do do