def cleanup_docker_images(request):
    """
    Whether we clean up docker images after a template test. Caching helps tests run
    faster, but targetted cleaning up after a full run is difficult.
    """
    return not request.config.getoption("--no-docker-image-cleanup")