summaryrefslogtreecommitdiffstats
path: root/examples/imageinspect.rs
blob: 50144f09d5c95ee1db1954948ba938f82555f989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
extern crate shiplift;

use shiplift::Docker;
use std::env;

fn main() {
    let docker = Docker::new();
    if let Some(id) = env::args().nth(1) {
        let image = docker.images().get(&id).inspect().unwrap();
        println!("{:?}", image);
    }
}