Skip to content

createContainerRuntime

createContainerRuntime(caps): ContainerRuntime

Defined in: packages/runtime/src/container/runtime.ts:580

Create a stateless ContainerRuntime bound to a platform’s capabilities.

PlatformCapabilities

Platform capabilities (fetch / loadAsset / importEsm / compileWasm) usually obtained from nodeRuntime or browserRuntime.

ContainerRuntime

A ContainerRuntime — reach for this when you don’t need registry tracking.

Containers returned by create() are untracked: the caller owns the handle and is responsible for stop() / remove().

import { createContainerRuntime, nodeRuntime } from '@fishnet/runtime'
const rt = createContainerRuntime((await nodeRuntime()).caps)
const c = await rt.create(spec)
await c.start()