blob: d45c00a8f3122962301b20c4d1308fe4595cb0f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use shiplift::Docker;
#[tokio::main]
async fn main() {
let docker = Docker::new();
let volumes = docker.volumes();
match volumes.list().await {
Ok(volumes) => {
for v in volumes {
println!("volume -> {:#?}", v)
}
}
Err(e) => eprintln!("Error: {}", e),
}
}
|