print docker logs on fail
This commit is contained in:
parent
b74819cf6c
commit
4fbfd0bae4
1 changed files with 2 additions and 0 deletions
2
test.sh
2
test.sh
|
@ -12,6 +12,8 @@ check_health() {
|
|||
echo -n "."
|
||||
if [ $SECONDS -ge $end ]; then
|
||||
echo -e "\n$service_name health check timed out after 80 seconds."
|
||||
echo "Printing logs for $service_name:"
|
||||
docker logs "$service_name"
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue