[ad_1]
I am trying to verify the sha256 image of a docker image before running it as a container.
To do this I am executing
docker images --no-trunc --quiet ${image}
Say for this image: https://hub.docker.com/layers/natpdev/git-cloner/latest/images/sha256-6889517fd553d36ed5743827cd81c8f94438bd2502db57e9bbfbfac73e746f5b?context=explore
I want to be able to verify
DIGEST:sha256:6889517fd553d36ed5743827cd81c8f94438bd2502db57e9bbfbfac73e746f5b
How can this be done in docker’s command line tool?
The above method I shared changes from environment to environment. I want something that is static across all OS’s.
Thank you!
[ad_2]