Guard DinD docker info call with timeout (#315)

* Add debug logging

* Guard DinD docker info with timeout

* Remove debug logging from test runner
This commit is contained in:
Frederik Ring 2023-12-12 20:28:13 +01:00 committed by GitHub
parent caa27d477f
commit 4d7d2e50cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ for dir in $(find $find_args | sort); do
docker run $docker_run_args offen/docker-volume-backup:test-sandbox docker run $docker_run_args offen/docker-volume-backup:test-sandbox
retry_counter=0 retry_counter=0
until docker exec $sandbox /bin/sh -c 'docker info' > /dev/null 2>&1; do until timeout 5 docker exec $sandbox /bin/sh -c 'docker info' > /dev/null 2>&1; do
if [ $retry_counter -gt 20 ]; then if [ $retry_counter -gt 20 ]; then
echo "Gave up waiting for Docker daemon to become ready after 20 attempts" echo "Gave up waiting for Docker daemon to become ready after 20 attempts"
exit 1 exit 1