Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 623 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 623 Bytes

Test

contain-rs

A tool to use docker and podman containers with rust.

For usage take a look at the Documentation

Quick Start

Add containers to your Cargo.toml

[dependencies]
contain-rs = "0.2"

Create a client and start a container:

use contain_rs::*;

let docker = Docker::new();

let container = Container::from_image(Image::from_name("docker.io/library/nginx"));

let handle = docker.create(container);

handle.run();
handle.wait();
handle.rm();