7 个版本 (破坏性更新)
0.5.0 | 2021 年 11 月 30 日 |
---|---|
0.4.0 | 2021 年 5 月 27 日 |
0.3.1 | 2021 年 5 月 22 日 |
0.3.0 | 2019 年 8 月 4 日 |
0.0.0 | 2019 年 5 月 24 日 |
#639 在 Unix API 中
在 2 crates 中使用
20KB
339 行
harbourmaster
Harbourmaster 是一个 Docker 对象的高级抽象库。
Harbourmaster 建立在优秀的 'shiplift' 之上,但提供了一种面向对象的接口,对于某些用例来说更容易使用。
特别适用于涉及启动和删除 Docker 容器的单元测试。
使用方法
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!");
}
当前版本:0.5.0
许可证:Apache-2.0
依赖项
~10–22MB
~350K SLoC