dockworker 0.16.0

Docker daemon API client. (a fork of Faraday's boondock)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use dockworker::Docker;
use std::path::Path;

#[tokio::main]
async fn main() {
    let docker = Docker::connect_with_defaults().unwrap();
    let id = docker
        .load_image(false, Path::new("image.tar"))
        .await
        .expect("prepare a tar-archive like: $docker save busybox > image.tar");
    println!("loaded: {id}");
}