This guide walks you through building and running your first container with MiniBox. You will install 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 CLI and miniboxd daemon, write a MiniBox file for a Node.js application, build an OCI image, and run it as an isolated container.
MiniBox requires Linux. The daemon (
miniboxd) must run as root for networking and overlayfs mounts. Test in a VM before deploying to shared machines.Prerequisites
- Linux (kernel 5.11+ recommended for cgroups v2)
- Go 1.21+ (only needed if building from source)
- Root or sudo access
Start the daemon
The daemon manages images, containers, and networking. Start it with root privileges:Verify connectivity in a second terminal:
Write a MiniBox file
Create a project directory with a simple Node.js app:Create Create Create the
index.js:index.js
package.json:package.json
MiniBox file:MiniBox
Build the image
From your project directory, build and tag the image:You will see DAG build logs showing blocks executing in parallel waves:Verify the image:
Next Steps
MiniBox File Format
Learn all directives: BASE, BLOCK, NEED, BNEED, RUN, COPY, AUTO-DEPS.
Compose Orchestration
Run multi-container apps with minibox-compose.yaml.