TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/chaitu426/minibox/llms.txt
Use this file to discover all available pages before exploring further.
minibox system namespace contains maintenance commands for cleaning up unused data. This page also covers the miniboxd daemon itself — how to start it, check its version, configure it via environment variables, and secure it with an API token.
system prune
Remove orphaned blobs, tear down stale lazy FUSE mounts, clean extracted layers, and delete temporary files underDataRoot.
Also clear the DAG build cache under
DataRoot/layers/. This forces a full image rebuild the next time minibox build is run. Without this flag, cached block layers are preserved.What prune removes
| Resource | Removed by prune | Removed by prune --build-cache |
|---|---|---|
Orphaned blobs in blobs/sha256/ not referenced by index.json | ✅ | ✅ |
| Stale lazy FUSE mounts | ✅ | ✅ |
Extracted layer directories under extracted/ | ✅ | ✅ |
Temporary files under DataRoot/tmp/ | ✅ | ✅ |
DAG block layer cache under DataRoot/layers/ | ❌ | ✅ |
system prune does not remove named volumes under DataRoot/volumes/ or active container directories. To fully reset the data root, use the provided scripts/clean-data.sh script.miniboxd daemon
miniboxd is the daemon binary that runs the HTTP API and the container runtime backend. It requires root privileges for overlay mounts, bridge networking, and iptables rules.
Start
127.0.0.1:8080 (localhost only).
Version
Daemon Environment Variables
Configureminiboxd by exporting these variables before starting the daemon. Because sudo strips the environment by default, use sudo -E or set variables in /etc/environment.
Root directory for all minibox data: images, blobs, layers, containers, volumes, and state. Set this to a non-system path during development to keep data isolated.
TCP address the daemon listens on. Use
:8080 only if you intentionally want to expose the API on all network interfaces. For local use, keep the default loopback binding.When set, every API request must present this token as
Authorization: Bearer <token> or X-API-Token: <token>. Requests without the token receive a 401 Unauthorized response.Comma-separated list of allowed build context directory roots. The daemon rejects
POST /containers/build requests whose context_path does not fall under one of these prefixes. Prevents arbitrary host path access via the build API.First host UID/GID to use for user-namespace ID mapping.
Size of the UID/GID map range for user-namespace mapping.
Set to
0 to skip blob indexing at daemon startup. Blob indexing is deferred to the first operation that requires it. Reduces startup latency significantly on hosts with large blob stores.Set to
0 to skip bridge (minibox0) setup at daemon startup. The bridge is created lazily when the first container requires networking. Makes startup near-instant on hosts where bridge creation is slow.Set to
0 to disable layer indexing during build finalization. Speeds up the finalize step for large layer sets.32-byte hex string used to encrypt container state metadata at rest. When set,
state.json entries are AES-encrypted before being written to disk. Leave unset to store state as plain JSON (the default).API Token Setup
Start the daemon with the token
Authorization header.Export the token for the CLI
MINIBOX_API_TOKEN and attaches it to every request automatically.