Docker

Build Status

This is a Docker Remote API binding in Rust. Documentation is available here.

Quick start

[dependencies] docker = "0.0.18"

```rust extern crate docker;

use docker::Docker;

let docker = Docker::new(); ```

Debug

Examples

Containers

```rust extern crate docker;

use docker::Docker;

let docker = Docker::new();

let containers = match docker.get_containers(false) { Ok(containers) => containers, Err(e) => { panic!("{}", e); } }; ```

Stats

```rust extern crate docker;

use docker::Docker;

let docker = Docker::new();

let containers = match docker.get_containers(false) { Ok(containers) => containers, Err(e) => { panic!("{}", e); } };

let stats = match docker.get_stats(&containers[0]) { Ok(stats) => stats, Err(e) => { panic!("{}", e); } }; ```

Images

```rust extern crate docker;

use docker::Docker;

let docker = Docker::new();

let images = match docker.get_images(false) { Ok(images) => images, Err(e) => { panic!({}, e); } };

```

Info

```rust extern crate docker;

use docker::Docker;

let docker = Docker::new();

let info = match docker.get_info() { Ok(info) => info, Err(e) => { panic!("{}", e); } }; ```