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?
In order to list and format Docker images, you have to use the “docker images” command followed by the “–format” option and a Go template.
The Docker Official Images are a curated set of Docker repositories hosted on Docker Hub. They are designed to: Provide essential base OS repositories (for example, ubuntu, centos) that serve as the starting point for the majority of users.
A registry is a storage and content delivery system, holding named Docker images, available in different tagged versions. Example: the image distribution/registry , with tags 2.0 and 2.1 . Users interact with a registry by using docker push and pull commands.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With