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

#347 in Network programming

Download history 9955/week @ 2024-01-20 10720/week @ 2024-01-27 9243/week @ 2024-02-03 11234/week @ 2024-02-10 9295/week @ 2024-02-17 9292/week @ 2024-02-24 7115/week @ 2024-03-02 8348/week @ 2024-03-09 9097/week @ 2024-03-16 9425/week @ 2024-03-23 6658/week @ 2024-03-30 5405/week @ 2024-04-06 7735/week @ 2024-04-13 8586/week @ 2024-04-20 6745/week @ 2024-04-27 7767/week @ 2024-05-04

31,675 downloads per month
Used in 16 crates (10 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
~379K SLoC