1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//!
//! A crate to schedule and manage containers.
//!
//! This crate might probably espacially interesting for testing.
//!
//! # Basic usage
//!
//! ```
//! use contain_rs::{
//! client::{podman::Podman, Client, Handle},
//! container::{Container, Image},
//! };
//!
//! let podman = Podman::new();
//!
//! let container = Container::from_image(Image::from_name("docker.io/library/nginx"));
//!
//! let handle = podman.create(container);
//!
//! handle.run()
//!
//! // when the handle gets out of scope the container is stopped and removed
//! ```
//!
//! # Clients
//!
//! There are going to be different clients. Docker and podman are both planned for now.
//!
//! Focus lies on the podman client though, which you can find [`here`](client::Podman).
//!
//! # Images
//!
//! Strictly speaking the types of this crate wouldn't exactly define an image as a thing that can be run.
//!
//! Rather it would schedule containers. Which you can find a description of containers [`here`](container).
//!