Is that possible to search docker images by sha256?
Suppose that nginx:latest and nginx:stable-alpine-perl are the same image (I mean if I pull nginx:latest, it has perl inside too (let us suppose) with the following output:
root@saeed:/# docker pull nginx:stable-alpine-perl
stable-alpine-perl: Pulling from library/nginx
8663204ce13b: Pull complete
d953079a3046: Pull complete
ea6555c01322: Pull complete
cbc136171839: Pull complete
d0f7b76a6d37: Pull complete
8f7ff84fa6b0: Pull complete
Digest: sha256:a20f8020221340e9fa8f83b4d8e611b04d34731b36dfa8528c5bc45066d3ecce
Status: Downloaded newer image for nginx:stable-alpine-perl
docker.io/library/nginx:stable-alpine-perl
root@saeed:/# docker images --digests | grep nginx | grep a20f8020221340e9fa8f83b4d8e611b04d34731b36dfa8528c5bc45066d3ecce
nginx stable-alpine-perl sha256:a20f8020221340e9fa8f83b4d8e611b04d34731b36dfa8528c5bc45066d3ecce 40b7e6d681dd 3 weeks ago 57.8MB
The current version is 1.20.2.
Suppose around two months later I want to check what image I did exactly pull.
The only information I have is sha256:a20f8020221340e9fa8f83b4d8e611b04d34731b36dfa8528c5bc45066d3ecce, but two months later's nginx:latest's sha256 is different.
Is there a way to search and find images by sha256?
I searched but found nothing unfortunately.