Skip to content

Instantly share code, notes, and snippets.

@cmwylie19
Created February 11, 2025 17:29
Show Gist options
  • Save cmwylie19/30b2e63d333d2ca5051851242a185d09 to your computer and use it in GitHub Desktop.
Save cmwylie19/30b2e63d333d2ca5051851242a185d09 to your computer and use it in GitHub Desktop.
get the hashes of images
docker pull docker.io/library/node:22-bookworm
docker inspect --format='{{index .RepoDigests 0}}' docker.io/library/node:22-bookworm

# or 
skopeo inspect docker://docker.io/library/node:22-bookworm | jq -r '.Digest'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment