Get sha256 from docker hub using docker API

Is it possible to use the docker API to get the sha256 of a remote image on docker hub? Want to compare what's in docker hub and what's in our private registry without having to pull the image from docker hub first.

submitted by /u/JumboDonuts
[link] [comments]
Source: Reddit