Registry / networking / bollard

bollard

JSON →
library0.21.0rscratesunverified

An asynchronous Docker daemon API client for Rust, supporting all major Docker operations.

# Cargo.toml [dependencies] bollard = "0.21.0"
INSTALL
IMPORT
SIG · BOLLARD
B
bollard
networkingrustv0.21.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 bollard::Docker;

Connects to the local Docker daemon and retrieves version info.

use bollard::Docker; #[tokio::main] async fn main() { let docker = Docker::connect_with_local_defaults().unwrap(); let version = docker.version().await.unwrap(); println!("{:?}", version); }
Debug
Known issues
gotchaRequires an async runtime like Tokio.
fix
Add tokio as a dependency and use #[tokio::main] or another async runtime.
affects: >=0.0.0
Upgrade
Version history
0.21.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
56 hits · last 30 days
node
50
Amazon
1
Resources
bollard — cargo add bollard · libregistry