raphamorim / rust-dockerclient

Rust client for the Docker remote API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rust-dockerclient

This package presents a client for the Docker remote API. It currently supports the Docker API up to version 1.23.

Note that docker's network API is only available in docker 1.8 and above, and only enabled in docker if DOCKER_EXPERIMENTAL is defined during the docker build process.

For more details, check the remote API documentation.

How it works?

extern crate docker;

use docker::Docker;

fn main() {
    let endpoint = "/var/run/docker.sock";
    let client = Docker::new(endpoint);
    let images = client.list_images();
}

Inspired by go-dockerclient

About

Rust client for the Docker remote API


Languages

Language:Rust 100.0%