docker

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
nametypedescription
imagestringContainer image name. Eg.: ubuntu or quay.io/prometheus/prometheus.
constraintstringSemver contraint. Eg.: 1.2.*

Types

type Image

Represents a docker container image.

Properties
nametypedescription
namestringImage name. Eg.: docker.io/library/fedora
domainstringRegistry domain. Eg.: docker.io.
pathstringRepository 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
nametypedescription
fullboolIf true returns the image name plus the tag. Eg.: docker.io/library/fedora:29