Skip to content

Commit

Permalink
Add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 committed Dec 12, 2023
1 parent caa27d4 commit f178943
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ for dir in $(find $find_args | sort); do

retry_counter=0
until docker exec $sandbox /bin/sh -c 'docker info' > /dev/null 2>&1; do
echo "retry counter at $retry_counter"
if [ $retry_counter -gt 20 ]; then
echo "Gave up waiting for Docker daemon to become ready after 20 attempts"
exit 1
fi

if [ "$(docker inspect $sandbox --format '{{ .State.Running }}')" = "false" ]; then
echo "sandbox not running, trying to recreate"
docker rm $sandbox
docker run $docker_run_args offen/docker-volume-backup:test-sandbox
fi
Expand Down

0 comments on commit f178943

Please sign in to comment.