Skip to content
Français

listDockerSandboxes

import { listDockerSandboxes } from "@elie-laloum/outpost/providers/docker";

List the Docker sandboxes created by Outpost that carry every label of the query, whatever the repositoryMode of the provider that created them. A sandbox whose egress companion remains after its container is gone is still reported under the sandbox name, so it can be removed. Containers not named outpost-<uuid> are never reported. The result is a snapshot sorted by name; it does not tell whether a sandbox is still in use. A sandbox is listed as soon as its containers are created, before acquire returns. Reserved io.outpost. labels are left out of the result. The deadline and signal bound the whole listing; failed docker commands reject with code process.

Complete example and detailed rules.

  • queryRequired
    ContainerSandboxQuery
    Labels every reported sandbox must carry, with the cancellation signal and deadline applied to each docker command.

Promise<ContainerSandbox[]>

export declare const listDockerSandboxes: (
  query: ContainerSandboxQuery,
) => Promise<ContainerSandbox[]>;