Skip to main content

Module docker

Module docker 

Source
Expand description

Docker client abstraction and domain types.

Defines the DockerClient async trait and the BollardDockerClient implementation. Also provides domain types (Container, Image, Network, Volume, MetricSample, DockerEvent) and the MockDockerClient for unit testing.

§Example

let docker = BollardDockerClient::connect_with_config(&config)?;
let containers = docker.list_containers().await?;

Structs§

BollardDockerClient
Container
DockerApiConfig
Holds all configurable timeout values for Docker API calls.
DockerEvent
Image
MetricSample
MockDockerClient
Network
Volume

Enums§

DockerError

Traits§

DockerClient

Functions§

docker_event_from_message
format_bytes_human
list_running_containers
metric_sample_from_bollard_stats
metric_sample_from_stats_json

Type Aliases§

DockerEventStream
Shared type alias for the complex Docker event stream return type.
DockerLogStream
Shared type alias for the Docker log stream return type.