use moby::{Docker, ServiceListOptions}; #[tokio::main] async fn main() { env_logger::init(); let docker = Docker::new("tcp://127.0.0.1:80").unwrap(); match docker .services() .list(&ServiceListOptions::builder().enable_status().build()) .await { Ok(services) => { for s in services { println!("service -> {:#?}", s) } } Err(e) => eprintln!("Error: {}", e), } }