diff --git a/docker/thirdparties/run-thirdparties-docker.sh b/docker/thirdparties/run-thirdparties-docker.sh index 73fee6a0bea245..128ddada969633 100755 --- a/docker/thirdparties/run-thirdparties-docker.sh +++ b/docker/thirdparties/run-thirdparties-docker.sh @@ -767,12 +767,12 @@ for compose in "${!pids[@]}"; do echo "" echo "print last 100 logs of the latest unhealthy container" - docker ps -a --latest --filter 'health=unhealthy' --format '{{.ID}}' | xargs -I '{}' sh -c 'echo "=== Logs of {} ===" && docker logs -t --tail 100 "{}"' + sudo docker ps -a --latest --filter 'health=unhealthy' --format '{{.ID}}' | xargs -I '{}' sh -c 'echo "=== Logs of {} ===" && docker logs -t --tail 100 "{}"' exit 1 fi done echo "docker started" -docker ps -a --format "{{.ID}} | {{.Image}} | {{.Status}}" +sudo docker ps -a --format "{{.ID}} | {{.Image}} | {{.Status}}" echo "all dockers started successfully"