title: How to extract docker image name from sha
body: <p>I am trying to resolve docker image name using sha256 value. Does docker already provides an API to do that? Or do I need to write something myself?</p>
  
  <p>As per @Zgurskyi suggestion, I tried using inspect, somehow it gives me error:</p>
  
  <pre><code># docker images --digests
  REPOSITORY                               TAG                 DIGEST                                                                    IMAGE ID            CREATED             SIZE
  alpine                                   3.4                 sha256:b733d4a32c4da6a00a84df2ca32791bb03df95400243648d8c539e7b4cce329c   b7c5ffe56db7        7 weeks ago         4.82MB
  
  # docker image inspect b733d4a32c4da6a00a84df2ca32791bb03df95400243648d8c539e7b4cce329c
  []
  Error: No such image: b733d4a32c4da6a00a84df2ca32791bb03df95400243648d8c539e7b4cce329c
  </code></pre>
  
  <p>TIA.</p>