Menu

Custom sandbox templates: give your agent's sandboxes your toolchain, pinned by digest
📰

Custom sandbox templates: give your agent's sandboxes your toolchain, pinned by digest

DEV Community: docker·Sandscale·9 days ago
#SurxQb57
#devtodocker#devto#dev#template#sandscale
Long article (778 words) — no AI summary yet.
Reading 0:00
15s threshold

Short answer: if every agent run starts by installing the same compilers and packages, put them in an image instead. Build and push the image yourself, pin its reference by digest ( name@sha256:... ), register it with sandscale sandbox template build , and start sandboxes with --template NAME . A digest names one exact image, so every run gets the same bits, and a changed upstream tag cannot change your agent's environment underneath it.

All commands here are from the live sandscale sandbox CLI reference , which is generated from the CLI itself.

Template, snapshot or setup script?

Setup script per run Snapshot Template

What it is Commands the agent runs first An archive of a sandbox's /workspace An image pinned by digest, with a default size

Good for Small, fast installs A prepared project directory (dependencies installed, data unpacked) System packages, toolchains, anything outside /workspace

Needs network at run time Usually No No

A snapshot saves only /workspace , so system-level tools belong in a…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.