diff --git a/examples/containers.rs b/examples/containers.rs index 93eda84..d5554df 100644 --- a/examples/containers.rs +++ b/examples/containers.rs @@ -6,7 +6,8 @@ fn main() { let docker = Docker::connect_with_defaults().unwrap(); let opts = ContainerListOptions::default().all(); let containers = docker.containers(opts).unwrap(); + for container in &containers { - println!("{}", container.Id); + println!("{} -> Created: {}, Image: {}, Status: {}", container.Id, container.Created, container.Image, container.Status); } } diff --git a/examples/images.rs b/examples/images.rs index 1da7095..0f24c68 100644 --- a/examples/images.rs +++ b/examples/images.rs @@ -4,5 +4,9 @@ use boondock::Docker; fn main() { let docker = Docker::connect_with_defaults().unwrap(); - docker.images(false).unwrap(); + let images = docker.images(false).unwrap(); + + for image in &images { + println!("{} -> Size: {}, Virtual Size: {}, Created: {}", image.Id, image.Size, image.VirtualSize, image.Created); + } }