Runtimetypeno test imports ittype Runtime = "docker" | "podman";The container runtimes whose command line this adapter speaks.
The container target (commons headless 0005-reach-and-targets FR-011): an Executor that runs a program in a running container through the container runtime (docker or podman): exec is the runtime's exec, put and get are its cp, and spawn is exec -i with piped streams. Each call is an argument vector with no shell between, and a name that could be taken for an option is refused as a call that could not be made (255), as the ssh target does.
import { containerExecutor } from "@intellectual-frontiers/headless/targets/container";
// const out = await containerExecutor("docker", "athens").exec(["systemctl", "is-system-running"]);Runtimetypeno test imports ittype Runtime = "docker" | "podman";The container runtimes whose command line this adapter speaks.
containerExecutorfunctionfunction containerExecutor(runtime: Runtime, container: string, deps?: { readonly run?: ((argv: readonly string[], opts?: RunOptions | undefined) => Promise<Output>) | undefined; }): ExecutorThe executor for one running container.