public static boolean isDockerTimestampNonEmpty(String dockerTimestamp) {
        // This is a defensive approach. Current versions of Docker use the DOCKER_TIMESTAMP_ZERO value, but
        // that could change.
        return (
            dockerTimestamp != null &&
            !dockerTimestamp.isEmpty() &&
            !dockerTimestamp.equals(DOCKER_TIMESTAMP_ZERO) &&
            DateTimeFormatter.ISO_OFFSET_DATE_TIME.parse(dockerTimestamp, Instant::from).getEpochSecond() >= 0L
        );
    }
Based on this status, has the container halted?

@param state the state provided by InspectContainer
@return true if we can conclude that the container has started but is now stopped, false otherwise.
core/src/main/java/org/testcontainers/utility/DockerStatus.java