Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find a Checksum of a Docker Image

Tags:

docker

I'm using Docker 1.10.3.

Docker Image Specification v1.0.0 says there is an Image Checksum field in a Docker Image JSON Description, like:

"checksum": "tarsum.v1+sha256:e58fcf7418d2390dec8e8fb69d88c06ec07039d651fedc3aa72af9972e7d046b",

However, there is no such a field in the result of docker inspect <IMAGE>.

How can I get the checksum of a particular image?

like image 888
Akihiro HARAI Avatar asked Feb 08 '23 12:02

Akihiro HARAI


1 Answers

You have the command

$ docker images --digests

for example:

docker images --digests busybox
REPOSITORY          TAG                 DIGEST                                                                    IMAGE ID            CREATED             SIZE
busybox             latest              sha256:32f093055929dbc23dec4d03e09dfe971f5973a9ca5cf059cbfb644c206aa83f   00f017a8c2a6        2 months ago        1.11 MB
like image 189
user2915097 Avatar answered Feb 13 '23 04:02

user2915097