#docker

stackify-docker-api

Interface to Docker API

1 unstable release

0.15.0 Aug 12, 2024

#102 in #docker

Download history 96/week @ 2024-08-07 35/week @ 2024-08-14 4/week @ 2024-08-21 12/week @ 2024-09-11 13/week @ 2024-09-18 21/week @ 2024-09-25 22/week @ 2024-10-02 2/week @ 2024-10-09 5/week @ 2024-10-23 148/week @ 2024-10-30

153 downloads per month
Used in stackify

MIT license

505KB
9K SLoC

stackify-docker-api

❗❗ Forked from docker-api-rs to add support for functions used by Stackify as the upstream repo appears to be inactive. This fork will only be updated to the extent of features needed by Stackify and should not be generally used.

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:

stackify-docker-api = { version = "0.15", 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.43

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–25MB
~361K SLoC