vantage6.common.docker.addons.parse_image_name#

parse_image_name(image)#

Parse image name into registry, repository, tag.

The returned tag may also be a digest. If image contains both a tag and a digest, the tag will be returned rather than the digest.

Parameters:

image (str) – Image name. E.g. “harbor2.vantage6.ai/algorithms/average:latest” or “library/hello-world”

Returns:

Registry, repository, and tag. Tag is “latest” if not specified in ‘image’

Return type:

tuple[str, str, str]