import type { ProcessConfig } from '../config/schema.js'; /** * Force-remove the container backing a `type: docker` process. * * Run in two places, both best-effort and idempotent: * - **before every spawn**, so a container left behind by a previous crashed * run doesn't block the upcoming `docker run --name ` with a name * conflict; * - **after the process is stopped or killed**, so the container — which is * owned by dockerd, not the local `docker run` CLI orckit just signalled — * doesn't linger and keep its published ports bound for the next boot. * * Failures (no such container, daemon down, docker not installed) are swallowed: * a pre-spawn failure surfaces later through the real `docker run`, and a * post-stop failure just means there was nothing to remove. * * No-op for non-docker processes (or docker processes without a container_name, * which the schema already rejects). */ /** * Blocking variant of {@link removeDockerContainer}, for the emergency paths * (double Ctrl-C, uncaughtException) that must finish before `process.exit()` * and therefore cannot await anything. A daemon-owned container outlives the * process that started it, so skipping this would leave the container — and * its published ports — held after orckit is gone. */ export declare function removeDockerContainerSync(config: ProcessConfig): void; export declare function removeDockerContainer(config: ProcessConfig): Promise; //# sourceMappingURL=docker.d.ts.map