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§
- Bollard
Docker Client - Container
- Docker
ApiConfig - Holds all configurable timeout values for Docker API calls.
- Docker
Event - Image
- Metric
Sample - Mock
Docker Client - Network
- Volume
Enums§
Traits§
Functions§
- docker_
event_ from_ message - format_
bytes_ human - list_
running_ containers - metric_
sample_ from_ bollard_ stats - metric_
sample_ from_ stats_ json
Type Aliases§
- Docker
Event Stream - Shared type alias for the complex Docker event stream return type.
- Docker
LogStream - Shared type alias for the Docker log stream return type.