harbourmaster

Crates.ioharbourmaster
lib.rsharbourmaster
version0.5.0
sourcesrc
created_at2019-05-24 08:10:34.517359
updated_at2021-11-30 15:44:40.43098
descriptionConvenient, high-level abstractions of running Docker containers
homepagehttps://github.com/danieleades/harbourmaster
repository
max_upload_size
id136568
size23,912
(danieleades)

documentation

README

harbourmaster

Continuous integration Latest Docs

Harbourmaster is a library of high-level abstractions of Docker objects.

Harbourmaster is built on top of the excellent 'shiplift', but provides an object-oriented interface that is a little easier to work with for some use cases.

Particularly useful for unit testing that involves spinning up and then removing Docker containers.

Usage

use harbourmaster::Container;

#[tokio::main]
async fn main() {
    let image = "alpine";

    println!("creating container!");
    let container = Container::new(image).await.unwrap();
    println!("container created!");

    println!("removing container!");
    container.delete().await.unwrap();
    println!("container removed!");
}

Current version: 0.5.0

License: Apache-2.0

Commit count: 0

cargo fmt