blob: 59c7b65e554c5b1910cd3229937b61ba4f721c82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
extern crate shiplift;
extern crate tokio;
use shiplift::Docker;
use tokio::prelude::Future;
fn main() {
let docker = Docker::new();
let volumes = docker.volumes();
let fut = volumes
.list()
.map(|volumes| {
for v in volumes {
println!("volume -> {:#?}", v)
}
})
.map_err(|e| eprintln!("Error: {}", e));;
tokio::run(fut);
}
|