Managing Containers¶
WARNING
This documentation is almost entirely "vibe coded"; while a helpful resource for humans and agents to understand this codebase, it should not be considered a source of ground truth in the way documentation normally is, and the user is responsible for verifying that all instructions given here are safe.
ABC Runner uses Charliecloud to run tasks and harnesses in controlled software environments. Most of the time, the CLI hides the details: when you ask to run a benchmark, the runner simply expects the appropriate runtime container to exist.
This page explains the layer underneath that behavior: what these containers are, how the CLI names them, where they are stored, and when you need to think about them explicitly.
Build Model¶
Containers are built in three layers:
Template sources come from two places. The base and harness layers are ABC Runner-owned assets in the package root:
The runtime (task-group) layer template lives inside the resolved task-group
directory as Dockerfile.jinja2, so each group carries its own runtime layer.
Container Refs¶
The CLI exposes the layering directly:
Examples:
baseopencodeopencode-hybridopencode/smoke_testopencode-hybrid/smoke_test
base/<harness> and base/<harness>/<task-group> are also accepted.
What Gets Built¶
When you build containers, ABC Runner produces derived artifacts outside the repository checkout. There are two related storage areas:
- Charliecloud image-builder storage used during builds
- unpacked runtime directories that
ch-runcan execute
Runtime artifacts live under:
Typical paths:
/var/tmp/abc-runner-{uid}/containers/base/
/var/tmp/abc-runner-{uid}/containers/harness__opencode/
/var/tmp/abc-runner-{uid}/containers/harness__opencode-hybrid/
/var/tmp/abc-runner-{uid}/containers/runtime__opencode__smoke_test/
/var/tmp/abc-runner-{uid}/containers/runtime__opencode-hybrid__smoke_test/
Charliecloud builder storage lives separately under:
Build Commands¶
Build the base layer:
Build a harness layer:
Build a final runtime:
abc-runner build-container opencode/smoke_test
abc-runner build-container opencode-hybrid/smoke_test
Build everything:
Force rebuild:
abc-runner build-container opencode/smoke_test --rebuild
abc-runner build-container opencode-hybrid/smoke_test --rebuild
abc-runner build-container --all --rebuild
List Status¶
abc-runner list-containers
abc-runner list-containers opencode
abc-runner list-containers opencode-hybrid
abc-runner list-containers 'opencode*'
Use an exact ref for detailed status, or a glob to list matching refs.
Delete Artifacts¶
Delete the base container:
Delete one harness layer:
Delete one runtime:
abc-runner delete-container opencode/smoke_test
abc-runner delete-container opencode-hybrid/smoke_test
Delete all built artifacts:
Clear both runtime artifacts and Charliecloud build cache:
Important Behavior¶
- parent layers matter at build time, not runtime
- built artifacts are independent after build
- deleting
opencodedoes not deleteopencode/smoke_test - deleting
opencode-hybriddoes not deleteopencode-hybrid/smoke_test - the runner uses the final harness-plus-group runtime, not the harness layer
The shared base layer should contain common harness/runtime dependencies used by
multiple harnesses. For example, OpenCode's glob and grep tools require
ripgrep, so ABC Runner installs ripgrep in the base container rather than in
each OpenCode-derived harness layer.
In practice, this means the CLI presents a fairly simple interface while hiding most of the container bookkeeping. You usually only need to care about this page when a container is missing, a build fails, or you want to understand where disk space is going.
Custom Storage Root¶
Override the default root with:
This is useful on systems where /var/tmp is small or slow.
Troubleshooting¶
Build failed because a parent is missing¶
Normally parents build automatically, but you can build explicitly:
abc-runner build-container base
abc-runner build-container opencode
abc-runner build-container opencode/smoke_test
abc-runner build-container opencode-hybrid
abc-runner build-container opencode-hybrid/smoke_test
Need to inspect the actual runtime path¶
abc-runner list-containers opencode/smoke_test
abc-runner list-containers opencode-hybrid/smoke_test