summaryrefslogtreecommitdiffstats
path: root/examples/info.rs
blob: b608818d395366916491ff392fe6a4435aa6ea41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate shiplift;
extern crate tokio;

use shiplift::Docker;
use tokio::prelude::Future;

fn main() {
    let docker = Docker::new();
    tokio::run(
        docker
            .info()
            .map(|info| println!("info {:?}", info))
            .map_err(|e| eprintln!("Error: {}", e)),
    );
}