bollard 0.21.0

An asynchronous Docker daemon API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Example of using `std::error::Error` with bollard
extern crate bollard;

use bollard::Docker;

fn run() -> Result<(), Box<dyn std::error::Error>> {
    let _docker = Docker::connect_with_socket_defaults().unwrap();

    let _env_var = std::env::var("ZOOKEEPER_ADDR")?;

    Ok(())
}

fn main() {
    run().unwrap();
}