title: How can I find a Docker image with a specific tag in Docker registry on the Docker command line?
body: <p>I try to locate one specific tag for a Docker image. How can I do it on the command line? I want to avoid downloading all the images and then removing the unneeded ones.</p>
  <p>In the official Ubuntu release, <a href="https://registry.hub.docker.com/_/ubuntu/" rel="noreferrer">https://registry.hub.docker.com/_/ubuntu/</a>, there are several tags (release for it), while when I search it on the command line,</p>
  <pre><code>user@ubuntu:~$ docker search ubuntu | grep ^ubuntu
  ubuntu              Official Ubuntu base image                          354
  ubuntu-upstart      Upstart is an event-based replacement for ...   7
  ubuntufan/ping                                                0
  ubuntu-debootstrap                                                   0
  </code></pre>
  <p>Also in the help of command line <code>search</code> <a href="https://docs.docker.com/engine/reference/commandline/search/" rel="noreferrer">https://docs.docker.com/engine/reference/commandline/search/</a>, no clue how it can work?</p>
  <p>Is it possible in the <code>docker search</code> command?</p>
  <p>If I use a raw command to search via the <a href="https://docs.docker.com/registry/spec/api/#tags" rel="noreferrer">Docker registry API</a>, then the information can be fetched:</p>
  <pre><code>   $ curl https://registry.hub.docker.com//v1/repositories/ubuntu/tags | python -mjson.tool
     [
      {
          &quot;layer&quot;: &quot;ef83896b&quot;,
          &quot;name&quot;: &quot;latest&quot;
      },
      .....
      {
          &quot;layer&quot;: &quot;463ff6be&quot;,
          &quot;name&quot;: &quot;raring&quot;
      },
      {
          &quot;layer&quot;: &quot;195eb90b&quot;,
          &quot;name&quot;: &quot;saucy&quot;
      },
      {
          &quot;layer&quot;: &quot;ef83896b&quot;,
          &quot;name&quot;: &quot;trusty&quot;
      }
  ]
  </code></pre>