boondock 0.0.50

Docker daemon API (a fork of Graham Lee's rust-docker)
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate boondock;

use boondock::{ContainerListOptions, Docker};

fn main() {
    let docker = Docker::connect_with_defaults().unwrap();
    let opts = ContainerListOptions::default();
    if let Some(container) = docker.containers(opts).unwrap().get(0) {
        for process in docker.processes(container).unwrap() {
            println!("{:#?}", process);
        }
    }
}