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