blob: ea577a75b4c53b2f86ffb8e0957db935aa50b9e0 (
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);
}
|