mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-22 13:20:29 +01:00
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:
parent
caa27d477f
commit
4d7d2e50cf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user