File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,8 @@ wait_for_docker()
6969 log " Waiting up to ${DOCKER_READY_TIMEOUT_SECONDS} s for Docker daemon (will attempt up to ${DOCKER_MAX_RESTARTS} service restarts)..."
7070
7171 # Quick check — if Docker is already healthy, nothing to do
72- local info_output
73- if info_output=$( docker info 2>&1 ) ; then
72+ if docker info > /dev/null 2>&1 ; then
7473 log " Docker daemon is ready"
75- echo " ${info_output} "
7674 return 0
7775 fi
7876
@@ -92,9 +90,8 @@ wait_for_docker()
9290 local DOCKER_READY_FORCE_RESTART_AFTER=3
9391
9492 while [ " ${elapsed} " -lt " ${DOCKER_READY_TIMEOUT_SECONDS} " ]; do
95- if info_output= $( docker info 2>&1 ) ; then
93+ if docker info > /dev/null 2>&1 ; then
9694 log " Docker daemon is ready (waited ${elapsed} s, ${restart_count} restart(s) performed)"
97- echo " ${info_output} "
9895 return 0
9996 fi
10097
You can’t perform that action at this time.
0 commit comments