Skip to content

Commit eea7deb

Browse files
Avoid too verbose output
1 parent 26d3048 commit eea7deb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.azure-pipelines/steps/ensure-docker-ready-linux.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)