Browse code

Windows CI: More debugging

Signed-off-by: John Howard <jhoward@microsoft.com>

John Howard authored on 2016/01/07 04:09:47
Showing 1 changed files
... ...
@@ -73,6 +73,16 @@ while ! docker version &> /dev/null; do
73 73
 		else
74 74
 			echo >&2 "error: daemon at $DOCKER_HOST fails to 'docker version':"
75 75
 			docker version >&2 || true
76
+			# Additional Windows CI debugging as this is a common error as of
77
+			# January 2016
78
+			if [ "$(go env GOOS)" = 'windows' ]; then	
79
+				echo >&2 "Container log below:"
80
+				echo >&2 "---"
81
+				# Important - use the docker on the CI host, not the one built locally
82
+				# which is currently in our path.
83
+				! /c/bin/docker -H=$MAIN_DOCKER_HOST logs docker-$COMMITHASH
84
+				echo >&2 "---"
85
+			fi			
76 86
 		fi
77 87
 		false
78 88
 	fi