Skip to content

An Extremely Simple Docker Wrapper in Rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Nomadic-Workplace/kiss-docker-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages