32 个版本
| 0.5.1 | 2024 年 4 月 22 日 |
|---|---|
| 0.5.0 | 2024 年 2 月 5 日 |
| 0.4.0 |
|
| 0.3.0 | 2023 年 8 月 1 日 |
| 0.0.7 | 2018 年 11 月 15 日 |
#158 in 网络编程
2,863 次每月下载
用于 5 个 包(4 个直接使用)
210KB
5.5K SLoC
Dockworker:与 Docker 守护进程通信的 Rust 库
支持
环境
-
Docker
- API 版本 1.26
-
操作系统
- Linux(在 Ubuntu(amd64)上开发)
- Windows
API
支持的 API 列表。 Support 表示在此包中存在任何包装方法。
-
容器
-
/containers/json -
/containers/create -
/containers/{id}/json -
/containers/{id}/top -
/containers/{id}/logs -
/containers/{id}/changes -
/containers/{id}/export -
/containers/{id}/exec -
/containers/{id}/stats -
/containers/{id}/resize -
/containers/{id}/start -
/containers/{id}/stop -
/containers/{id}/restart -
/containers/{id}/kill -
/containers/{id}/update -
/containers/{id}/rename -
/containers/{id}/pause -
/containers/{id}/unpause -
/containers/{id}/attach -
/containers/{id}/attach/ws -
/containers/{id}/wait -
/containers/{id}# 删除 -
/containers/{id}/archive -
/containers/{id}/prune
-
-
检查点
-
/containers/{id}/checkpoints
-
-
执行
-
/exec/{id}/start -
/exec/{id}/json
-
-
镜像
-
/images/json -
/build -
/build/prune -
/images/create -
/images/{name}/json -
/images/{name}/history -
/images/{name}/push -
/images/{name}/tag -
/images/{name}# 删除 -
/images/search -
/images/prune -
/commit -
/images/{name}/get -
/images/get -
/images/load
-
-
系统
-
/auth -
/info -
/version -
/_ping -
/events -
/system/df
-
-
网络
-
/networks -
/networks/{id} -
/networks/{id}# 删除 -
/networks/create -
/networks/{id}/connect -
/networks/{id}/disconnect -
/networks/prune
-
测试
执行单元测试
$ cargo test
依赖 docker
默认情况下,一些依赖于Docker的测试用例已被禁用。这些测试用例所需的容器是通过以下方式构建的:docker-compose
$ docker-compose build
$ cargo test -- --ignored
原始项目贡献者
Dockworker库是从boondock分叉而来的。以下是它的贡献者。
- Graham Lee ghmlee@ghmlee.com
- Toby Lawrence toby@nuclearfurnace.com
- Eric Kidd git@randomhacks.net
依赖项
~11–29MB
~434K SLoC