Merge pull request #21703 from dchen1107/test

Make sure docker is properly shutdown before startup.
This commit is contained in:
Dawn Chen 2016-02-22 13:35:24 -08:00
commit b58826292a

View File

@ -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