@swampadmin/container-runtime
v2026.02.15.0
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.
Repository
https://github.com/swamp-club/container-runtime
Install
$ swamp extension pull @swampadmin/container-runtimeRelease Notes
New
- Podman driver — rootless container support
- Compose model —
up,down,scalefor multi-container stacks - Deploy workflow — pull images then start stack
- Container
inspectmethod
Fixed
- Docker driver now reconnects on socket timeout
@swampadmin/container-runtime/containerv1.0.0container.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| runtime? | string | Container runtime (docker, podman) |
runrun operation
| Argument | Type | Description |
|---|---|---|
| image | string | Container image reference |
| env? | record | Environment variables |
| ports? | array | Port mappings (host:container) |
stopstop operation
| Argument | Type | Description |
|---|---|---|
| id | string | Instance identifier to stop |
| graceful? | boolean | Wait for in-flight requests to complete |
logslogs operation
| Argument | Type | Description |
|---|---|---|
| id | string | Container identifier |
| tail? | number | Number of lines from the end |
| follow? | boolean | Stream logs in real time |
execexec operation
| Argument | Type | Description |
|---|---|---|
| command | string | Command to execute |
| timeout? | number | Timeout in seconds |
inspectinspect operation
| Argument | Type | Description |
|---|---|---|
| id | string | Resource identifier |
Resources
container.state(persistent)— Managed resource state
container.lock(ephemeral)— Concurrency lock
@swampadmin/container-runtime/composev1.0.0compose.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| runtime? | string | Container runtime (docker, podman) |
upup operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
downdown operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
scalescale operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
Files
compose.log(text/plain)— Operation audit log
compose.json(application/json)— Structured output
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
docker-engineconfigurable
driverdocker.ts
docker-engine execution driver
Config Fields
| Field | Type | Description |
|---|---|---|
| socket_path? | string | Docker daemon socket (default: /var/run/docker.sock) |
| api_version? | string | Docker API version (e.g. 1.43) |
podman-engine
driverpodman.ts
podman-engine execution driver
2025.12.01.0244.0 KBJan 24, 2026
Docker driver with basic container management
linux-x86_64linux-aarch64
containersdockerpodmanruntime