9 unstable releases (3 breaking)

0.6.1 Nov 21, 2021
0.6.0 Oct 19, 2021
0.5.1 Jul 30, 2021
0.4.0 Jul 12, 2021
0.1.0-1 Jul 4, 2021

#74 in Unix APIs

Download history 228/week @ 2021-08-09 57/week @ 2021-08-16 25/week @ 2021-08-23 4/week @ 2021-08-30 3/week @ 2021-09-06 17/week @ 2021-09-13 5/week @ 2021-09-20 11/week @ 2021-09-27 2/week @ 2021-10-04 25/week @ 2021-10-11 48/week @ 2021-10-18 33/week @ 2021-10-25 5/week @ 2021-11-01 118/week @ 2021-11-08 109/week @ 2021-11-15 13/week @ 2021-11-22

245 downloads per month

MIT license

240KB
6.5K SLoC

docker-api

GitHub Actions MIT licensed Released API docs

a rust interface to Docker containers

Install

Add the following to your Cargo.toml file

[dependencies]
docker-api = "0.5"

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.5", features = ["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:

docker-api = { version = "0.5", 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

MIT

Dependencies

~11MB
~224K SLoC