public void waitUntilEnd() {
        try {
            waitUntilEnd(Long.MAX_VALUE);
        } catch (TimeoutException e) {
            // timeout condition can never occur in a realistic timeframe
            throw new IllegalStateException(e);
        }
    }
Wait until Docker closes the stream of output.
core/src/main/java/org/testcontainers/containers/output/WaitingConsumer.java