blob: a6d6e522961cd1765fd9ab16498c13a38627177b (
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!("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);
}
|