The latest stable release of Python 3 is version 3.6. Ubuntu 18.04 as well as Ubuntu 17.10 come with Python 3.6 pre-installed, which is not the case for older Ubuntu versions. In this article, we will explain how to install latest Python 3.6 in Ubuntu 14.04, 16.04, 16.10 and 17.04 via the APT package manager. Click to see our best Video content. Take A Sneak Peak At The Movies Coming Out This Week (8/12) Iconic quotes from the cast of The Office.
- Dockerfile Python3 7 Ubuntu
- Python-docker Ubuntu 20.04
- Ubuntu Docker Image Python
- Python Ubuntu Docker Download
Description
Search the Docker Hub for images
Usage
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
Dockerfile Python3 7 Ubuntu
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.
Valid placeholders for the Go template are:
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
Dockerfile Python3 7 Ubuntu
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.
Valid placeholders for the Go template are:
Python-docker Ubuntu 20.04
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.
Ubuntu Docker Image Python
The following example uses a template without headers and outputs theName
and StarCount
entries separated by a colon (:
) for all images:
Python Ubuntu Docker Download
This example outputs a table format:
Parent command
Command | Description |
---|---|
docker | The base command for the Docker CLI. |