Commit a8744279 authored by Phillip Wittrock's avatar Phillip Wittrock

Merge pull request #21347 from yujuhong/health_check

Switch to using `docker version` as health check
parents abd92a21 b92e2903
......@@ -261,7 +261,7 @@ health_monitoring() {
# We simply kill the process when there is a failure. Another upstart job will automatically
# restart the process.
while [ 1 ]; do
if ! timeout 20 docker ps > /dev/null; then
if ! timeout 10 docker version > /dev/null; then
echo "Docker daemon failed!"
pkill docker
fi
......
......@@ -25,7 +25,7 @@ echo "waiting a minute for startup"
sleep 60
while true; do
if ! sudo timeout 20 docker ps > /dev/null; then
if ! sudo timeout 10 docker version > /dev/null; then
echo "Docker failed!"
exit 2
fi
......
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