Listing/searching for an image
We need an image to get the container started. Let's see how images are searched for on the Docker registry. As we have seen in Chapter 1, Introduction and Installation, a registry holds the Docker images, which can be both public and private. By default, the search happens on the default public registry, which is the Docker Hub and is located at https://hub.docker.com/.
Getting ready
Ensure that the Docker daemon is running on the host and can be connected through the Docker client.
How to do it...
The docker search
command lets you search an image on a Docker registry. The following is the syntax for this:
docker search [OPTIONS] TERM
The following is an example of searching for the alpine
image:
$ docker search --limit 5 alpine

The preceding screenshot lists the name, description, and number of stars awarded to the image. It also points out whether the image is official and automated or not:
STARS
signify how many people liked the given image.- The
OFFICIAL
column...