docker ps -a --filter "name=32-docker-compose" --format "table {{.Names}}\t{{.Status}}" (captured immediately after the Maven test JVM exited, with no manual docker command run in between) NAMES STATUS 32-docker-compose-postgres-1 Exited (0) 6 seconds ago