19 releases (10 breaking)

0.13.0 Mar 3, 2023
0.12.2 Dec 2, 2022
0.12.1 Oct 19, 2022
0.9.2 Jul 13, 2022
0.5.1 Jul 30, 2021

#753 in Network programming

Download history 110/week @ 2022-12-03 114/week @ 2022-12-10 67/week @ 2022-12-17 106/week @ 2022-12-24 140/week @ 2022-12-31 176/week @ 2023-01-07 132/week @ 2023-01-14 274/week @ 2023-01-21 86/week @ 2023-01-28 210/week @ 2023-02-04 239/week @ 2023-02-11 431/week @ 2023-02-18 396/week @ 2023-02-25 263/week @ 2023-03-04 176/week @ 2023-03-11 176/week @ 2023-03-18

1,040 downloads per month
Used in 5 crates (4 directly)

MIT license

495KB
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.13"

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.13", 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.13", 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–17MB
~326K SLoC