summaryrefslogtreecommitdiffstats
path: root/examples/images.rs
blob: e68c9bb5f294efc7c7889d73cc49667ab4dfdf1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use shiplift::Docker;
use tokio::prelude::Future;

fn main() {
    let docker = Docker::new();
    println!("docker images in stock");
    let fut = docker
        .images()
        .list(&Default::default())
        .map(|images| {
            for i in images {
                println!("{:?}", i.repo_tags);
            }
        })
        .map_err(|e| eprintln!("Error: {}", e));
    tokio::run(fut);
}