createContainerRuntime
createContainerRuntime(
caps):ContainerRuntime
Defined in: packages/runtime/src/container/runtime.ts:580
Create a stateless ContainerRuntime bound to a platform’s capabilities.
Parameters
Section titled “Parameters”Platform capabilities (fetch / loadAsset / importEsm / compileWasm) usually obtained from nodeRuntime or browserRuntime.
Returns
Section titled “Returns”A ContainerRuntime — reach for this when you don’t need registry tracking.
Remarks
Section titled “Remarks”Containers returned by create() are untracked: the caller owns
the handle and is responsible for stop() / remove().
Example
Section titled “Example”import { createContainerRuntime, nodeRuntime } from '@fishnet/runtime'
const rt = createContainerRuntime((await nodeRuntime()).caps)const c = await rt.create(spec)await c.start()