5 unstable releases
new 0.3.2 | Jan 30, 2025 |
---|---|
0.3.1 | Jan 27, 2025 |
0.3.0 | Jan 27, 2025 |
0.2.0 | Jan 27, 2025 |
0.1.0 | Jan 24, 2025 |
#94 in #docker
328 downloads per month
180KB
4.5K
SLoC
docker-api
a rust interface to Docker containers
Install
Add the following to your Cargo.toml
file
[dependencies]
docker-api = "0.14"
Supported API
Default endpoints include:
- Containers
- Images
- Networks
- Volumes
- Exec
- System
To enable swarm endpoints add a swarm
feature to Cargo.toml
like so:
docker-api = { version = "0.14", features = ["swarm"] }
Swarm endpoints include:
- Swarm
- Nodes
- Services
- Tasks
- Secrets
- Configs
- Plugins
Latest 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:
docker-api = { version = "0.14", default-features = false }
Usage
Examples for most API endpoints can be found in the examples directory.
Notice
This crate is a fork of shiplift.
License
Dependencies
~11–25MB
~374K SLoC