TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/mattpocock/sandcastle/llms.txt
Use this file to discover all available pages before exploring further.
sandcastle podman subcommands manage the Podman image that Sandcastle uses to create agent sandboxes. They work the same way as the Docker equivalents, with one key difference: Podman uses Containerfile instead of Dockerfile. Run sandcastle podman build-image once after sandcastle init (when you chose Podman as your sandbox provider), and again whenever you modify the Containerfile.
sandcastle podman build-image
Builds the Podman image from .sandcastle/Containerfile. Run this command after sandcastle init with the Podman provider selected, or any time you modify the Containerfile.
When to rebuild
Rebuild the image after:- Modifying
.sandcastle/Containerfile - Changing the base image or installed packages
- Updating agent tools in the image
Options
Podman image name. Defaults to
sandcastle:<repo-dir-name>, derived from the basename of your repo directory. Pass this flag if you used a custom name during sandcastle init.Path to a custom Containerfile. When provided, the build context is set to the current working directory rather than
.sandcastle/. Use this if your Containerfile lives outside the config directory or references files from the repo root.Example
sandcastle podman remove-image
Removes the Podman image from your local Podman storage. Use this to free disk space after finishing a project, or before rebuilding from a different base image.
Options
Podman image name to remove. Defaults to
sandcastle:<repo-dir-name>. Pass this flag if you used a custom name.Example
Default image name
Both commands default tosandcastle:<repo-dir-name>, where <repo-dir-name> is the basename of your repo’s root directory. For example, if your repo lives at /Users/alice/projects/my-app, the default image name is sandcastle:my-app.
Pass --image-name to both sandcastle podman build-image and your podman() provider call if you use a custom name:
Containerfile vs Dockerfile
When you select Podman duringsandcastle init, the scaffolded file is named Containerfile rather than Dockerfile. The contents follow the same OCI image format — the name difference is a Podman convention. The sandcastle podman build-image command passes this filename to podman build automatically.