Skip to content

Commit

Permalink
debug: Print exited container logs
Browse files Browse the repository at this point in the history
  • Loading branch information
clepski committed Sep 23, 2024
1 parent 8e925ce commit 11108b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/docker-wait-on-containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ do
docker ps -a --filter label=compas
done

containers=$(docker ps -a --filter status=exited)
if [ -n "$containers" ]; then
echo "Some containers are exited."
docker logs $containers
fi

echo "Done no containers with filter 'health=starting'."
docker ps -a --filter label=compas

0 comments on commit 11108b4

Please sign in to comment.