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

use shiplift::{ContainerFilter, Docker};

fn main() {
    let docker = Docker::new();
    for c in docker.containers().
        list()
        .sized()
        .filter(vec![
            ContainerFilter::Label("foo".to_owned(), "bar".to_owned())
                ]).build().unwrap() {
        println!("container -> {:?}", c)
    }
}