Skip to main content

Module docker

Module docker 

Source
Expand description

Runner containers through the Docker Engine API: the connection, container, volume and image requests, and the DockerApi trait the engine and the caches call. It decides nothing about scheduling, and a JIT config only ever reaches a container as a root-only file, never the create request or a log line.

Structs§

Container
A container list found.
Docker
The local Docker Engine.
Image
An image images found.
JitConfig
A runner’s just-in-time config from GitHub: credentials, never printed.
RunnerSpec
One runner container: a profile’s image stage with the profile’s limits.
RunnerState
What inspect reports about a runner container.
StartError
A runner start that failed, with the container it may have left: Docker may have made, or even started, it before the request failed, as when its answer is lost.
TaggedImage
An image tagged_images found.
Tty
A container’s terminal, attached once it was created and before it started, so none of its output is missed.
TtySize
A terminal’s size.

Enums§

Error
Generic Docker errors

Constants§

JIT_CONFIG_PATH
Where start puts the just-in-time config in the container: a root-only file, never the create request, which Docker stores and clients may log.

Traits§

DockerApi
The Docker Engine calls the scheduler and the caches make. Docker is the real one; the engine’s tests use a fake.

Functions§

cpu_shares
The CPU shares of a runner’s container or a record’s shell with cpus CPUs: 1024 a CPU, within the 2 to 262144 Docker takes, which it writes as the container’s cpu.weight. They sit in the slice beside each other, so when the slice’s CPUs are all in use they share them in proportion to their cpus, not evenly; a container with work still gets at most its cpus (nano_cpus). The mirror keeps Docker’s default weight, which every job’s pulls go through, and programs outside the slice share the host’s CPUs with the slice by its own weight (ADR 0079).
create_body
The create-container request for a runner container under an isolation backend.
is_not_found
Whether a Docker error says the container, volume or image does not exist.

Type Aliases§

Output
What a command run in a container prints on stdout, as it prints it.