Skip to content

Commit dc847fe

Browse files
authored
Merge pull request #323 from bartlettt/log_docker_start_failure
Output contents of log file on error
2 parents 6a27ae9 + 7d99f9d commit dc847fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/common.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ start_docker() {
9494
trap stop_docker EXIT
9595

9696
if ! timeout ${STARTUP_TIMEOUT} bash -ce 'while true; do try_start && break; done'; then
97+
[ -f "$LOG_FILE" ] && cat "${LOG_FILE}"
9798
echo Docker failed to start within ${STARTUP_TIMEOUT} seconds.
9899
return 1
99100
fi

0 commit comments

Comments
 (0)