11 releases (5 breaking)

0.8.0 Dec 12, 2021
0.6.1 Nov 21, 2021
0.5.1 Jul 30, 2021

#63 in Unix APIs

Download history 26/week @ 2022-01-25 21/week @ 2022-02-01 19/week @ 2022-02-08 25/week @ 2022-02-15 42/week @ 2022-02-22 16/week @ 2022-03-01 42/week @ 2022-03-08 81/week @ 2022-03-15 79/week @ 2022-03-22 78/week @ 2022-03-29 23/week @ 2022-04-05 16/week @ 2022-04-12 38/week @ 2022-04-19 98/week @ 2022-04-26 91/week @ 2022-05-03 216/week @ 2022-05-10

447 downloads per month
Used in 2 crates

MIT license

250KB
7K 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.8"

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.8", 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.8", 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

~8–16MB
~293K SLoC