docker-sdk 0.1.2

docker-sdk for rust-lang
Documentation
1
2
3
4
5
6
7
8
9
10
use docker_sdk::Docker;

#[tokio::main]
async fn main() {
    let docker = Docker::host("http://yourhost".parse().unwrap());
    match docker.ping().await {
        Ok(pong) => println!("Ping: {}", pong),
        Err(e) => eprintln!("Error: {}", e),
    }
}