extern crate opencontainers; extern crate pretty_env_logger; use opencontainers::Registry; fn main() { pretty_env_logger::init(); let registry = Registry::new("https://registry-1.docker.io"); let image = registry .image("library/hello-world", "latest") .expect("Could not get image"); println!("{:#?}", image.manifest()); println!("{:#?}", image.config()); }