#docker #api-client #daemon #fork #boondock

dockworker

Docker daemon API client. (a fork of Faraday's boondock)

32 releases

0.5.1 Apr 22, 2024
0.5.0 Feb 5, 2024
0.4.0 Feb 2, 2024
0.3.0 Aug 1, 2023
0.0.7 Nov 15, 2018

#165 in Network programming

Download history 1318/week @ 2024-07-29 589/week @ 2024-08-05 535/week @ 2024-08-12 493/week @ 2024-08-19 478/week @ 2024-08-26 470/week @ 2024-09-02 553/week @ 2024-09-09 456/week @ 2024-09-16 665/week @ 2024-09-23 473/week @ 2024-09-30 539/week @ 2024-10-07 578/week @ 2024-10-14 948/week @ 2024-10-21 532/week @ 2024-10-28 514/week @ 2024-11-04 367/week @ 2024-11-11

2,419 downloads per month
Used in 5 crates (4 directly)

Apache-2.0

210KB
5.5K SLoC

Dockworker: Rust library for talking to the Docker daemon

CircleCI Build status

Support

Environment

  • Docker

    • API version 1.26
  • OS

    • Linux (developped in Ubuntu(amd64))
    • Windows

Api

Supported Api List. Support means that any wrapper method exists in this crate.

  • container

    • /containers/json
    • /containers/create
    • /containers/{id}/json
    • /containers/{id}/top
    • /containers/{id}/logs
    • /containers/{id}/changes
    • /containers/{id}/export
    • /containers/{id}/exec
    • /containers/{id}/stats
    • /containers/{id}/resize
    • /containers/{id}/start
    • /containers/{id}/stop
    • /containers/{id}/restart
    • /containers/{id}/kill
    • /containers/{id}/update
    • /containers/{id}/rename
    • /containers/{id}/pause
    • /containers/{id}/unpause
    • /containers/{id}/attach
    • /containers/{id}/attach/ws
    • /containers/{id}/wait
    • /containers/{id} # remove
    • /containers/{id}/archive
    • /containers/{id}/prune
  • checkpoints

    • /containers/{id}/checkpoints
  • exec

    • /exec/{id}/start
    • /exec/{id}/json
  • image

    • /images/json
    • /build
    • /build/prune
    • /images/create
    • /images/{name}/json
    • /images/{name}/history
    • /images/{name}/push
    • /images/{name}/tag
    • /images/{name} # remove
    • /images/search
    • /images/prune
    • /commit
    • /images/{name}/get
    • /images/get
    • /images/load
  • system

    • /auth
    • /info
    • /version
    • /_ping
    • /events
    • /system/df
  • network

    • /networks
    • /networks/{id}
    • /networks/{id} # remove
    • /networks/create
    • /networks/{id}/connect
    • /networks/{id}/disconnect
    • /networks/prune

Test

Executing unit tests:

$ cargo test

Depends on docker

Some test cases depend on docker are disabled by default. These containers required from test cases are built by docker-compose like below:

$ docker-compose build
$ cargo test -- --ignored

Original Project Contributors

Dockworker crate is forked from boondock. Heres are contributors to it.

Dependencies

~12–27MB
~419K SLoC