extern crate async_docker; extern crate http; extern crate futures; extern crate tokio; use async_docker::{DockerApi, new_docker}; use futures::{future, Future}; fn main() { let work = future::lazy(|| { let docker: Box = new_docker(None).unwrap(); docker .images() .list(&Default::default()) .and_then(|a| Ok(println!("{:#?}", a))) .map_err(|e| eprintln!("{:?}", e)) }); tokio::runtime::run(work); }