Skip to content

MountSpec

MountSpec = { kind: "volume"; readonly?: boolean; server: Fileserver; } | { channel: Channel; kind: "bridge"; readonly?: boolean; } | { kind: "fresh"; } | { kind: "none"; }

Defined in: packages/runtime/src/container/types.ts:124

Mount source for a single namespace path — a discriminated union.

  • volume — mount an existing Fileserver (typically shared across containers).
  • bridge — mount a remote fileserver across a Channel (cross-worker, via importFS).
  • fresh — mount a fresh, empty memory fileserver (per-container scratch).
  • none — explicitly remove a mount that the base image would otherwise provide.