title: Get manifest of a public Docker image hosted on Docker Hub using the Docker Registry API
body: <p>I'm trying to figure out the correct URL to use for this.  As an example, let's say I want to get the manifest for the alpine:3.9 tag.  I've tried <a href="https://hub.docker.com/v2/repositories/library/alpine/manifests/3.9" rel="noreferrer">https://hub.docker.com/v2/repositories/library/alpine/manifests/3.9</a> but that yields a 404 error.</p>
  
  <p>I've found that Docker Hub's registry implementation doesn't really match their documentation.  For example, <a href="https://docs.docker.com/registry/spec/api/#tags" rel="noreferrer">https://docs.docker.com/registry/spec/api/#tags</a> indicates that the URL for getting the list of tags is v2/&lt;name&gt;/tags/list, but when you query Docker Hub, you actually need to leave off the "list" part of the URL: <a href="https://hub.docker.com/v2/repositories/library/alpine/tags/" rel="noreferrer">https://hub.docker.com/v2/repositories/library/alpine/tags/</a>.  So that makes me question everything about their documentation now when it comes to querying the Docker Hub registry.</p>