Registry / networking / docker-api

docker-api

JSON →
library0.14.0rscratesunverified

Interface to Docker API

# Cargo.toml [dependencies] docker-api = "0.14.0"
INSTALL
IMPORT
SIG · DOCKER-API
D
docker-api
networkingrustv0.14.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Docker
✓ use docker_api::Docker;

Connect to Docker daemon and list containers

use docker_api::Docker; #[tokio::main] async fn main() { let docker = Docker::new("unix:///var/run/docker.sock").unwrap(); println!("{:?}", docker.containers().list(&Default::default()).await.unwrap()); }
Debug
Known issues
gotchaRequires async runtime (tokio) and feature flags for TLS
fix
Add tokio as dependency and enable 'tls' feature for HTTPS connections
affects: >=0.14.0
Upgrade
Version history
0.14.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
docker-api — cargo add docker-api · libregistry