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