Index
Overview
The docker modules allow you to manipulate docker image names.
Functions
def image
image(image, constraint) Image
Returns a new Image
based on a given image and constraint.
Arguments
name | type | description |
---|---|---|
image | string | Container image name. Eg.: ubuntu or quay.io/prometheus/prometheus . |
constraint | string | Semver contraint. Eg.: 1.2.* |
Types
type Image
Represents a docker container image.
Properties
name | type | description |
---|---|---|
name | string | Image name. Eg.: docker.io/library/fedora |
domain | string | Registry domain. Eg.: docker.io . |
path | string | Repository path. Eg.: library/fedora |
Methods
def Image.tags
Image.tags() list
List of all the tags for this container image.
def Image.version
Image.version() string
Return the highest tag matching the image constraint.
Arguments
name | type | description |
---|---|---|
full | bool | If true returns the image name plus the tag. Eg.: docker.io/library/fedora:29 |