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