Rust

[DockerCli]: Docker through its command-line client.

Contents

use utopia_orchestration::DockerCli;
Rust
pub struct DockerCli

Docker through the docker command-line client on the PATH, which reaches whatever daemon its environment or context names.

Commands run without a shell, every word passed as its own argument.

Rust
use utopia_orchestration::{Adapter, DockerCli};

let docker = DockerCli::new();
for container in docker.list(&[("label".into(), "team=billing".into())]).await? {
    println!("{} {}", container.name, container.status);
}
Compiles in CI; needs a running service to execute.
Also implements Default.