12 个版本 (6 个重大更新)

0.7.0 2021 年 2 月 21 日
0.6.0 2019 年 12 月 8 日
0.5.0 2019 年 4 月 21 日
0.4.0 2018 年 12 月 24 日
0.1.2 2015 年 6 月 10 日

#493 in Unix API

Download history 1055/week @ 2024-03-30 908/week @ 2024-04-06 500/week @ 2024-04-13 562/week @ 2024-04-20 752/week @ 2024-04-27 509/week @ 2024-05-04 373/week @ 2024-05-11 502/week @ 2024-05-18 498/week @ 2024-05-25 568/week @ 2024-06-01 441/week @ 2024-06-08 778/week @ 2024-06-15 519/week @ 2024-06-22 457/week @ 2024-06-29 369/week @ 2024-07-06 500/week @ 2024-07-13

1,996 下载/每月
不到 10 个 包中使用

MIT 许可证

150KB
4.5K SLoC

shiplift

GitHub Actions MIT licensed Released API docs Master API docs

一个用于操作 Docker 容器的 Rust 接口

安装

将以下内容添加到您的 Cargo.toml 文件中

[dependencies]
shiplift = "0.8"

用法

您可以在本仓库的 examples 目录 中找到许多可运行的小示例程序。

计划中的更改

  • 为 image pull chunked json 赋予适当的类型

Doug Tangren (softprops) 2015-2018


lib.rs:

Shiplift 是一个用于操作 Docker 容器的多传输实用程序

示例

let docker = shiplift::Docker::new();

match docker.images().list(&Default::default()).await {
    Ok(images) => {
        for image in images {
            println!("{:?}", image.repo_tags);
        }
    },
    Err(e) => eprintln!("Something bad happened! {}", e),
}

依赖关系

~11–23MB
~369K SLoC