docker-api
a rust interface to Docker containers
Install
Add the following to your Cargo.toml
file
[]
= "0.4"
Supported API
Default endpoints include:
- Containers
- Images
- Networks
- Volumes
- Exec
- System
To enable swarm endpoints add a swarm
feature to Cargo.toml
like so:
= { = "0.4", = ["swarm"] }
Swarm endpoints include:
- Swarm
- Nodes
- Services
- Tasks
- Secrets
- Configs
- Plugins
SSL Connection
To enable HTTPS connection to docker add a tls
flag to Cargo.toml
.
Default features
By default only chrono
feature is enabled. To disable it use:
= { = "0.4", = false }
Usage
Examples for most API endpoints can be found in the examples directory.
Notice
This crate is a fork of shiplift.