20 releases (11 breaking)

0.14.0 Jun 5, 2023
0.13.0 Mar 3, 2023
0.12.2 Dec 2, 2022
0.12.1 Oct 19, 2022
0.5.1 Jul 30, 2021

#437 in Network programming

Download history 1292/week @ 2023-08-15 828/week @ 2023-08-22 568/week @ 2023-08-29 757/week @ 2023-09-05 1064/week @ 2023-09-12 1095/week @ 2023-09-19 924/week @ 2023-09-26 860/week @ 2023-10-03 1434/week @ 2023-10-10 957/week @ 2023-10-17 1119/week @ 2023-10-24 795/week @ 2023-10-31 1079/week @ 2023-11-07 1081/week @ 2023-11-14 1048/week @ 2023-11-21 976/week @ 2023-11-28

4,387 downloads per month
Used in 14 crates (8 directly)

MIT license

505KB
9K 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.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.42

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

MIT

Dependencies

~9–25MB
~354K SLoC