Skip to content

Commit 5804cfc

Browse files
authored
Update setup-docker.js
1 parent 45ff310 commit 5804cfc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/setup-docker.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,14 @@ async function run() {
171171
'-c',
172172
`
173173
set -x
174-
command -v docker
174+
command docker || true
175175
i=0
176176
while ! /Applications/Docker.app/Contents/Resources/bin/docker system info &>/dev/null; do
177177
(( i++ == 0 )) && printf %s '-- Waiting for Docker to finish starting up...' || printf '.'
178178
sleep 1
179+
command docker || true
179180
# wait 180s(3min)
180-
if [ $i -gt 180 ];then echo "-- Wait docker start $i s too long, exit"; exit; fi
181+
if [ $i -gt 180 ];then sudo /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check;uname -a;echo "-- Wait docker start $i s too long, exit"; exit 1; fi
181182
done
182183
echo "-- Docker is ready."
183184
`]);

0 commit comments

Comments
 (0)