Registry / networking / bollard-next

bollard-next

JSON →
library0.18.1rscratesunverified

An asynchronous Docker daemon API client for Rust, enabling interaction with Docker containers and services.

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

Connects to the local Docker daemon and fetches its version.

use bollard_next::Docker; #[tokio::main] async fn main() { let docker = Docker::connect_with_local_defaults().unwrap(); let version = docker.version().await.unwrap(); println!("Docker version: {:?}", 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.18.0
Upgrade
Version history
0.18.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
38
OpenAI (training)
1
Resources
bollard-next — cargo add bollard-next · libregistry