Skip to content

Commit a657972

Browse files
committed
Increase timeout for docker start
Increased timeout for docker start from 180s to 600s. Have done it because sometimes 180s is not enough for github macOS runners.
1 parent fd7ecda commit a657972

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/setup-docker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ while ! /Applications/Docker.app/Contents/Resources/bin/docker system info &>/de
177177
(( i++ == 0 )) && printf %s '-- Waiting for Docker to finish starting up...' || printf '.'
178178
command -v docker || echo 'test docker command loop: not found'
179179
sleep 1
180-
# wait 180s(3min)
181-
if [ $i -gt 180 ];then exit 1;sudo /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check;uname -a;system_profiler SPHardwareDataType;echo "::error::-- Wait docker start $i s too long, exit"; exit 1; fi
180+
# wait 600s(10min)
181+
if [ $i -gt 600 ];then exit 1;sudo /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check;uname -a;system_profiler SPHardwareDataType;echo "::error::-- Wait docker start $i s too long, exit"; exit 1; fi
182182
done
183183
echo "::notice::-- Docker is ready.Wait time is $i s"
184184
uname -a || true

0 commit comments

Comments
 (0)