api
Module[DockerApi]: Docker through the Engine API on its Unix socket.
Contents
use utopia_orchestration::DockerApi;Rust
pub struct DockerApiDocker through the Engine API on its Unix socket
(/var/run/docker.sock unless DockerApi::with_socket names
another), one connection per request.
Rust
use utopia_orchestration::{Adapter, DockerApi};
let docker = DockerApi::new();
if !docker.network_exists("runtimes").await? {
docker.create_network("runtimes", false).await?;
}Compiles in CI; needs a running service to execute.
Also implements
Default.