Skip to content

Instantly share code, notes, and snippets.

@thephw
Created July 30, 2020 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thephw/892ef5e6be307b6ed49d39b28d7484e2 to your computer and use it in GitHub Desktop.
Save thephw/892ef5e6be307b6ed49d39b28d7484e2 to your computer and use it in GitHub Desktop.
# Get the digest from a tag on a remote repository
docker inspect ${IMAGE_TAG} --format '{{index .RepoDigests 0 }}'
# Get the tags from digest
docker inspect ${IMAGE_DIGEST} --format '{{index .RepoTags }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment