docker logs

pull/18007/head
absolutelightning 1 year ago
parent 0ebe3e9579
commit 4c382039ef

@ -411,6 +411,7 @@ function capture_logs {
for cont in $services; do for cont in $services; do
echo "Capturing log for $cont" echo "Capturing log for $cont"
docker.exe logs "envoy_${cont}_1"
docker.exe logs "envoy_${cont}_1" &> "${LOG_DIR}/${cont}.log" || { docker.exe logs "envoy_${cont}_1" &> "${LOG_DIR}/${cont}.log" || {
echo "EXIT CODE $?" > "${LOG_DIR}/${cont}.log" echo "EXIT CODE $?" > "${LOG_DIR}/${cont}.log"
} }

Loading…
Cancel
Save