shipliftExp 0.5.2

Not the official one
Documentation
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!("remote docker images in stock");
    let fut = docker
        .images()
        .search("rust")
        .map(|results| {
            for result in results {
                println!("{} - {}", result.name, result.description);
            }
        })
        .map_err(|e| eprintln!("Error: {}", e));
    tokio::run(fut);
}