Skip to content

Commit d77d382

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

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

lib/setup-docker.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,16 @@ async function run() {
171171
'-c',
172172
`
173173
set -x
174-
command docker || true
174+
command -v docker || echo 'test docker command 1: not found'
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 '.'
178+
command -v docker || echo 'test docker command loop: not found'
178179
sleep 1
179-
command docker || true
180180
# wait 180s(3min)
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
181+
if [ $i -gt 180 ];then sudo /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check;uname -a;system_profiler SPHardwareDataType;echo "-- Wait docker start $i s too long, exit"; exit 1; fi
182+
uname -a || true
183+
system_profiler SPHardwareDataType || true
182184
done
183185
echo "-- Docker is ready."
184186
`]);

0 commit comments

Comments
 (0)