A tool to use docker and podman containers with rust.
For usage take a look at the Documentation
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();