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

#643 in Network programming

Download history 5895/week @ 2024-07-20 5639/week @ 2024-07-27 3348/week @ 2024-08-03 5020/week @ 2024-08-10 5238/week @ 2024-08-17 4925/week @ 2024-08-24 5618/week @ 2024-08-31 6705/week @ 2024-09-07 6181/week @ 2024-09-14 6681/week @ 2024-09-21 6900/week @ 2024-09-28 7274/week @ 2024-10-05 6335/week @ 2024-10-12 7367/week @ 2024-10-19 6173/week @ 2024-10-26 3222/week @ 2024-11-02

24,281 downloads per month
Used in 19 crates (12 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

~11–24MB
~358K SLoC