Commit 6c5f07d5 authored by Dawn Chen's avatar Dawn Chen

Make sure docker is properly shutdown before startup.

parent 8bda033e
......@@ -19,10 +19,16 @@
# which in turn restarts docker.
/etc/init.d/docker stop
# Make sure docker gracefully terminated before start again
while pidof docker > /dev/null; do
echo "waiting clean shutdown"
sleep 10
done
/etc/init.d/docker start
echo "waiting a minute for startup"
sleep 60
echo "waiting 30s for startup"
sleep 30
while true; do
if ! sudo timeout 10 docker version > /dev/null; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment