Skip to main content

Container Runtime

@swampadmin/container-runtimev2026.02.15.0· 14d agoMODELS·WORKFLOWS·DRIVERS
01README

Container execution drivers for Docker and Podman with Compose-based orchestration.

Drivers

  • Docker Engine — connects via /var/run/docker.sock
  • Podman — rootless containers, systemd integration

Both drivers support run, stop, logs, exec, and inspect through a unified container model.

02Release Notes

New

  • Podman driver — rootless container support
  • Compose modelup, down, scale for multi-container stacks
  • Deploy workflow — pull images then start stack
  • Container inspect method

Fixed

  • Docker driver now reconnects on socket timeout
03Models2
@swampadmin/container-runtime/containerv1.0.0container.ts

Global Arguments

ArgumentTypeDescription
runtime?stringContainer runtime (docker, podman)
fn run(image: string, env?: record, ports?: array)
run operation
ArgumentTypeDescription
imagestringContainer image reference
env?recordEnvironment variables
ports?arrayPort mappings (host:container)
fn stop(id: string, graceful?: boolean)
stop operation
ArgumentTypeDescription
idstringInstance identifier to stop
graceful?booleanWait for in-flight requests to complete
fn logs(id: string, tail?: number, follow?: boolean)
logs operation
ArgumentTypeDescription
idstringContainer identifier
tail?numberNumber of lines from the end
follow?booleanStream logs in real time
fn exec(command: string, timeout?: number)
exec operation
ArgumentTypeDescription
commandstringCommand to execute
timeout?numberTimeout in seconds
fn inspect(id: string)
inspect operation
ArgumentTypeDescription
idstringResource identifier

Resources

container.state(persistent)— Managed resource state
container.lock(ephemeral)— Concurrency lock
@swampadmin/container-runtime/composev1.0.0compose.ts

Global Arguments

ArgumentTypeDescription
runtime?stringContainer runtime (docker, podman)
fn up(name: string)
up operation
ArgumentTypeDescription
namestringResource name
fn down(name: string)
down operation
ArgumentTypeDescription
namestringResource name
fn scale(name: string)
scale operation
ArgumentTypeDescription
namestringResource name

Files

compose.log(text/plain)— Operation audit log
compose.json(application/json)— Structured output
04Workflows1
Deploy Compose Stackdeploy-compose

Deploy Compose Stack workflow

deploy-compose-jobExecute Deploy Compose Stack
1.Pull Images@swampadmin/container-runtime/container.run— Pull Images step
2.Start Stack@swampadmin/container-runtime/compose.up— Start Stack step
05Drivers2
docker-engineconfigurable
driverdocker.ts

docker-engine execution driver

Config Fields

FieldTypeDescription
socket_path?stringDocker daemon socket (default: /var/run/docker.sock)
api_version?stringDocker API version (e.g. 1.43)
podman-engine
driverpodman.ts

podman-engine execution driver

06Previous Versions1
2025.12.01.0Feb 14, 2026
07Stats
Downloads
0
Archive size
125.0 KB

Not yet scored.

A score will be generated the next time this extension is published. The owner can also trigger scoring manually.

08Platforms
09Labels