blob: b3e80a8805854e11c79eb0b1290653b75232b527 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
extern crate shiplift;
extern crate tokio;
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);
}
|