File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,14 +171,16 @@ async function run() {
171171 '-c' ,
172172 `
173173set -x
174- command docker || true
174+ command -v docker || echo 'test docker command 1: not found'
175175i=0
176176while ! /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'
178179sleep 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
182184done
183185echo "-- Docker is ready."
184186` ] ) ;
You can’t perform that action at this time.
0 commit comments