/contain-rs

A tool to use docker / podman / oci containers with rust

Primary LanguageRustMIT LicenseMIT

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();