Skip to content
 
 

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KISS Docker Wrapper in Rust

Rust

An Extremely Simple Async Docker Wrapper in Rust

Contrary to other libraries, KISS Docker does not depend on the docker socket, but uses use async_process::Command to build and execute the right commands.

Quick start

[dependencies]
kiss_docker = "0.0.2"
extern crate kiss_docker;

use kiss_docker::container::Container;

#[tokio::main]
async fn main() {
    match kiss_docker::container::list_all(Some("alpine")).await {
        Ok(containers) => containers
            .iter()
            .for_each(|container| println!("{}", container.id)),
        Err(e) => {
            panic!("{}", e);
        }
    };
}

See the the examples directory for more examples.

Testing

Running the tests by default requires a few docker images locally

docker pull alpine

Afterwards it's the usual:

cargo test

About

An Extremely Simple Docker Wrapper in Rust

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages