From a4b31f314fa1385950a9dbc81682d9acb2e2fba9 Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Fri, 18 Aug 2023 16:01:50 -0700 Subject: [docker-in-docker] Reverts the retry logic (#659) * Update install.sh * [docker-in-docker] Update retry logic * revert the retry logic! --- .../test-scripts/docker-test-init.sh | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 test/docker-in-docker/test-scripts/docker-test-init.sh (limited to 'test/docker-in-docker/test-scripts') diff --git a/test/docker-in-docker/test-scripts/docker-test-init.sh b/test/docker-in-docker/test-scripts/docker-test-init.sh deleted file mode 100644 index b213fb4..0000000 --- a/test/docker-in-docker/test-scripts/docker-test-init.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -#------------------------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. -#------------------------------------------------------------------------------------------------------------- - -retry_count=0 -docker_ok="false" - -until [ "${docker_ok}" = "true" ] || [ "${retry_count}" -eq "5" ]; -do - if [ "${retry_count}" -eq "3" ]; then - echo "Starting docker after 3 retries..." - /usr/local/share/docker-init.sh - fi - - set +e - docker info > /dev/null 2>&1 && docker_ok="true" - - if [ "${docker_ok}" != "true" ]; then - echo "(*) Failed to start docker, retrying in 5s... Retry count: ${retry_count}" - retry_count=`expr $retry_count + 1` - sleep 1s - fi - set -e -done \ No newline at end of file -- cgit v1.2.3