def extract_docker_images()

in hack/images/update_image_list.py [0:0]


def extract_docker_images(manifests):
    """Extract all unique images from 'docker.io' registry in the manifests."""
    # Regex pattern to match images from docker.io
    docker_image_pattern = re.compile(r"docker\.io/[a-zA-Z0-9._/-]+:[a-zA-Z0-9._-]+")
    images = set(docker_image_pattern.findall(manifests))  # Use a set to remove duplicates
    return sorted(images)  # Sort the images alphabetically