#docker-api #stub #api #models #directory

docker-api-stubs

Generated Docker API swagger stubs for use in docker-api

4 releases (breaking)

0.5.0 Feb 21, 2023
0.4.0 Oct 19, 2022
0.3.0 Aug 26, 2022
0.2.0 Aug 26, 2022
0.1.0 Jul 27, 2022

#21 in #stub

Download history 9402/week @ 2024-06-23 5828/week @ 2024-06-30 6758/week @ 2024-07-07 7013/week @ 2024-07-14 5807/week @ 2024-07-21 5483/week @ 2024-07-28 3486/week @ 2024-08-04 4913/week @ 2024-08-11 5426/week @ 2024-08-18 5028/week @ 2024-08-25 5572/week @ 2024-09-01 6933/week @ 2024-09-08 6160/week @ 2024-09-15 6290/week @ 2024-09-22 6995/week @ 2024-09-29 7060/week @ 2024-10-06

27,061 downloads per month
Used in 17 crates (via docker-api)

MIT license

325KB
4.5K 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.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

~2.2–3.5MB
~64K SLoC