summaryrefslogtreecommitdiffstats
path: root/examples/volumes.rs
blob: 0bb82aa2f2b158e1a2293806988071068dddfffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use shiplift::Docker;

#[tokio::main]
async fn main() {
    let docker = Docker::new();
    match docker.volumes().list().await {
        Ok(volumes) => {
            for v in volumes {
                println!("volume -> {:#?}", v)
            }
        }
        Err(e) => eprintln!("Error: {}", e),
    }
}