Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get List of Official Docker Images

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?

like image 300
Wajih Avatar asked Apr 01 '17 06:04

Wajih


People also ask

What is the docker command to list of current images?

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.

What are official docker images?

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.

Does docker registry contain collection of images?

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.


2 Answers

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.

Docker Store explore options

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]
like image 55
thaJeztah Avatar answered Oct 07 '22 22:10

thaJeztah


you can use their api. the trick is replacing the _ from the public url with library: https://hub.docker.com/v2/repositories/library/

like image 36
kpacha Avatar answered Oct 07 '22 22:10

kpacha