Description
Search the Docker Hub for images
Usage
Install the docker package or, for the development version, the docker-git AUR package. Next start and enable docker.service and verify operation: # docker info Note that starting the docker service may fail if you have an active VPN connection due to IP conflicts between the VPN and Docker's bridge and overlay networks. I use Docker with most of my PHP projects—I am releasing a book on using Docker with PHP next week—so I thought I’d show you the recipe for getting a SQL server connection with the PDO driver. Here’s the Dockerfile needed to install the perquisites and pdosqlsrv PECL module.
Extended description
Search Docker Hub for images
For example uses of this command, refer to the examples section below.
Options
Name, shorthand | Default | Description |
--filter , -f | Filter output based on conditions provided | |
--format | Pretty-print search using a Go template | |
--limit | 25 | Max number of search results |
--no-trunc | Don't truncate output |
Examples
Search images by name
This example displays images with a name containing ‘busybox’:
Display non-truncated description (--no-trunc)
This example displays images with a name containing ‘busybox’,at least 3 stars and the description isn’t truncated in the output:
Limit search results (--limit)
The flag --limit
is the maximum number of results returned by a search. This value couldbe in the range between 1 and 100. The default value of --limit
is 25.
Filtering
The filtering flag (-f
or --filter
) format is a key=value
pair. If there is morethan one filter, then pass multiple flags (e.g. --filter is-automated=true --filter stars=3
)
The currently supported filters are:
- stars (int - number of stars the image has)
- is-automated (boolean - true or false) - is the image automated or not
- is-official (boolean - true or false) - is the image official or not
stars
This example displays images with a name containing ‘busybox’ and atleast 3 stars:
is-automated
This example displays images with a name containing ‘busybox’and are automated builds:
is-official
This example displays images with a name containing ‘busybox’, at least3 stars and are official builds:
Format the output
The formatting option (--format
) pretty-prints search outputusing a Go template.
Docker Php Curl Bar
Valid placeholders for the Go template are:
Placeholder | Description |
---|---|
.Name | Image Name |
.Description | Image description |
.StarCount | Number of stars for the image |
.IsOfficial | “OK” if image is official |
.IsAutomated | “OK” if image build was automated |
When you use the --format
option, the search
command willoutput the data exactly as the template declares. If you use thetable
directive, column headers are included as well.
Docker Php Curl Function
The following example uses a template without headers and outputs theName
and StarCount
entries separated by a colon (:
) for all images:
Php Xml
This example outputs a table format:
Parent command
Docker Php Curl Connection Refused
Command | Description |
---|---|
docker | The base command for the Docker CLI. |