mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #20509 from yujuhong/docker_health
Change docker health checker to using `docker ps`
This commit is contained in:
commit
ec4b94aabc
@ -281,7 +281,7 @@ script
|
||||
# We simply kill the process when there is a failure. Another upstart job will automatically
|
||||
# restart the process.
|
||||
while [ 1 ]; do
|
||||
if ! timeout 10 docker version > /dev/null; then
|
||||
if ! timeout 20 docker ps > /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 10 docker version > /dev/null; then
|
||||
if ! sudo timeout 20 docker ps > /dev/null; then
|
||||
echo "Docker failed!"
|
||||
exit 2
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user