Docker Community Forums

Share and learn in the Docker community.

How to verify pushed digest is same as received?


(Kai Hendry) #1

Hi there,

I’m very confused about tracking digest hashes of images:

~$ docker pull hendry/webcbuild
Using default tag: latest
latest: Pulling from hendry/webcbuild

357ea8c3d80b: Already exists
a3ed95caeb02: Already exists
d469fde2d3cc: Already exists
73d9fd1a9c36: Already exists
fd9ad48c031a: Already exists
0d050c8a84f5: Already exists
911d6e0e812c: Already exists
Digest: sha256:52750f3fc548bec03ea994451e0236ecb3dc38eda9a64b104f7e0c263536ed51
Status: Image is up to date for hendry/webcbuild:latest
~$ docker inspect hendry/webcbuild | grep 527
~$ docker images --digests hendry/webcbuild
REPOSITORY          TAG                 DIGEST              IMAGE ID            CREATED             SIZ
hendry/webcbuild    latest              <none>              3a4315d0a03f        26 minutes ago      627
.9 MB

How do I verify my pulled image is sha256:52750f3fc548bec03ea994451e0236ecb3dc38eda9a64b104f7e0c263536ed51 ?

Wishlist: Why doesn’t print out the hashes or am I missing something?