vantage6.common.docker.addons.get_digest#

get_digest(full_image, client=None, docker_username=None, docker_password=None)#

Get digest of a Docker image

Parameters:
  • full_image (str) – Image name. E.g. “harbor2.vantage6.ai/algorithms/average:latest”

  • client (DockerClient | None) – Docker client to use. If not provided, a new client will be created. An existing client could be useful to provide if it has already been authenticated with one or more registries

  • docker_username (str | None) – Docker username to authenticate with at the registry. Required if the image is private

  • docker_password (str | None) – Docker password to authenticate with at the registry. Required if the image is private

Returns:

Digest of the image or None if the digest could not be found

Return type:

str | None