I am trying to get a list of all the official images from the Docker Store. However, I could not find any simple way to get the list. Docker CLI has a docker search command but it does not have any argument to get
a list of all the images from the Docker Store and then filter it later.
Any ideas how it could be done?
If you click the "explore" menu item at the top; https://store.docker.com/search?q=&source=verified&type=image all official images are shown. You can find non official images in the "Community (Docker Hub)" section.
From the command-line, you can search using the --filter is-official=true filter option, for example:
docker search --filter is-official=true php
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
php While designed for web development, the PH... 2210 [OK]
php-zendserver Zend Server - the integrated PHP applicati... 110 [OK]
you can use their api. the trick is replacing the _ from the public url with library: https://hub.docker.com/v2/repositories/library/
In addition to the other solutions mentioned, you can list all images under the library user from the hub page (less programmatic than the hub API mentioned by kpacha):
https://hub.docker.com/u/library/
And there's also the upstream github repo:
https://github.com/docker-library/official-images/tree/master/library