get digest of saved docker image (the saved .tar file)
tl;dr Given a docker image that was saved to a local file, e.g. /tmp/my-image.tar, how do I determine the image digest (SHA256 checksum) that will match what docker expects? Given that I save a docker image to a local file, docker image save my-image --output /tmp/my-image.tar I can ask docker to tell me the image digest (SHA256 checksum) for the image in the registry $ docker images --digests REPOSITORY TAG DIGEST ... my-image tag1 sha256:019cf20c5b98efcd548952d31df1768377916bf8d57d70d979c6c92bfd5e7446 ... But I want to figure out that digest value by reading the file /tmp/my-image.tar. How d
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.