zalando-stups / pierone-cli

DEPRECATED: Convenient command line client for STUPS' Pier One Docker registry
http://docs.stups.io/en/latest/components/pierone.html#command-line-client
Other
10 stars 13 forks source link

Docker image search #62

Open hjacobs opened 6 years ago

hjacobs commented 6 years ago

Pier One has a hidden endpoint to search for images by name ("legacy" Docker v1 API), here an example for the OSS registry:

https://registry.opensource.zalan.do/v1/search?q=python

{
  "results": [
    {
      "name": "ci/python"
    },
    {
      "name": "eagleeye/python"
    },
    {
      "name": "stups/python"
    }
  ],
  "query": "python",
  "page": 1,
  "page_size": 3,
  "num_pages": 1,
  "num_results": 3
}

Swagger UI: https://registry.opensource.zalan.do/ui/#!/Docker_Registry_API_v1/org_zalando_stups_pierone_api_v1_search

This should be available via the CLI, e.g.:


pierone search python