https://github.com/vv9k/docker-api-rs
Rust interface to Docker containers
https://github.com/vv9k/docker-api-rs
Last synced: 3 months ago
JSON representation
Rust interface to Docker containers
- Host: GitHub
- URL: https://github.com/vv9k/docker-api-rs
- Owner: vv9k
- License: mit
- Created: 2021-04-09T06:03:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-24T14:19:58.000Z (about 1 year ago)
- Last Synced: 2025-04-08T23:13:46.424Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 745 KB
- Stars: 109
- Watchers: 3
- Forks: 33
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-api
[](https://github.com/vv9k/docker-api-rs/actions) [](./LICENSE) [](http://docs.rs/docker-api)
> a rust interface to [Docker](https://www.docker.com/) containers
## Install
Add the following to your `Cargo.toml` file
```toml
[dependencies]
docker-api = "0.14"
```## Supported API
Default endpoints include:
- Containers
- Images
- Networks
- Volumes
- Exec
- SystemTo enable swarm endpoints add a `swarm` feature to `Cargo.toml` like so:
```toml
docker-api = { version = "0.14", features = ["swarm"] }
```Swarm endpoints include:
- Swarm
- Nodes
- Services
- Tasks
- Secrets
- Configs
- PluginsLatest stable version of this crate supports API version: **v1.42**
Master branch supports: **v1.43**## Features
### SSL Connection
To enable HTTPS connection to docker add a `tls` flag to `Cargo.toml`.
### Chrono
To enable chrono DateTime timestamps add a `chrono` feature flag to `Cargo.toml`.
### Default features
By default only `chrono` feature is enabled. To disable it use:
```toml
docker-api = { version = "0.14", default-features = false }
```## Usage
Examples for most API endpoints can be found in the [examples directory](https://github.com/vv9k/docker-api-rs/tree/master/examples).
## Notice
This crate is a fork of [shiplift](https://github.com/softprops/shiplift).## License
[MIT](https://raw.githubusercontent.com/vv9k/docker-api-rs/master/LICENSE)