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