container_guts.main.container package

Submodules

container_guts.main.container.base module

class container_guts.main.container.base.ContainerName(raw)[source]

Bases: object

Parse a container name into named parts

property container_name

Derive a container name from the uri

parse(raw)[source]

Parse a name into known pieces

property path

A path for an image

property uri

Show the full uri

class container_guts.main.container.base.ContainerTechnology[source]

Bases: object

A base class for a container technology

call(command, stream=True, allow_fail=False)[source]

Call a command and check for error.

container_guts.main.container.decorator module

class container_guts.main.container.decorator.ensure_container(func)[source]

Bases: object

Ensure the first argument is a container, and the name is fully formatted into a ContainerName object (for further parsing)

container_guts.main.container.docker module

class container_guts.main.container.docker.DockerContainer[source]

Bases: ContainerTechnology

A Docker container controller.

cleanup(**kwargs)
command = 'docker'
execute(**kwargs)
export(**kwargs)
get_container(image)[source]

Courtesy function to get a container from a URI.

inspect(**kwargs)
pull(**kwargs)
run(**kwargs)
shell(**kwargs)
tag(**kwargs)

Module contents