How to get sha's of all the tags corresponding to an image on docker hub. For instance, consider an image with latest
, latest-windows
and latest-linux
tags. On docker pull image_name:latest
, docker will automagically pull the correct image based on the OS from which the command is being run.
How can I get the SHA's for all the three tags. I found that we can do it using manifest-tool. Is there a way we can do this by using only docker.
EDIT:
docker inspect image_name:tag
will return the sha of only one of the tags either windows or linux depending on the operating system.