@Override
    protected boolean shouldPullCached(DockerImageName imageName, ImageData localImageData) {
        Duration imageAge = Duration.between(localImageData.getCreatedAt(), Instant.now());
        boolean result = imageAge.compareTo(maxAge) > 0;
        if (result) {
            log.trace("Should pull image: {}", imageName);
        }
        return result;
    }
An ImagePullPolicy which pulls the image from a remote repository only if its created date is older than maxAge
core/src/main/java/org/testcontainers/images/AgeBasedPullPolicy.java