summaryrefslogtreecommitdiffstats
path: root/examples/containerinspect.rs
blob: 30f462a89cc82858d91e319e8314e86692b7706d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate shiplift;

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

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