summaryrefslogtreecommitdiffstats
path: root/examples/custom_host.rs
blob: 3b1fd3e287c07fa06725593a6f2c9b589f171d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use futures::Future;
use shiplift::Docker;

fn main() {
    let docker = Docker::host("http://yourhost".parse().unwrap());

    let fut = docker
        .ping()
        .map(|pong| println!("Ping: {}", pong))
        .map_err(|e| eprintln!("Error: {}", e));

    tokio::run(fut);
}