abx-sandbox-docker

Runs Docker and docker compose inside AgentBox sandboxes using kata-isolated templates.

11|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/scitix/Agent-Sandbox --skill abx-sandbox-docker-scitix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: abx-sandbox-docker
Source: https://github.com/scitix/Agent-Sandbox/tree/main/plugin/skills/abx-sandbox-docker
Command: npx skills add https://github.com/scitix/Agent-Sandbox --skill abx-sandbox-docker-scitix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Workloads that need their own container runtime cannot run Docker inside a standard sandbox, and choosing the wrong isolation mode (privileged runc) exposes the host. This Skill explains how to enable Docker-in-Docker safely through sandbox templates. ## Core Features & Use Cases - Runtime selection guidance: Compares kata (Firecracker microVM) versus privileged runc for running dockerd, with plain-language security consequences. - Template discovery: Uses abx templates and abx envs commands to find which templates carry dind support and which template an env currently uses. - Registry access: Covers internal registry mirrors, image-pull secrets, and running docker login inside the sandbox. - Use Case: An agent needs to build images and run docker compose up inside its sandbox; this Skill walks through picking a kata-based template, creating the sandbox with a longer timeout, and verifying with docker version. ## Quick Start Ask the agent to create a sandbox on a dind-enabled kata template and run docker version inside it to confirm the daemon is up.

Frequently Asked Questions about abx-sandbox-docker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Docker inside an AgentBox sandbox?

Create the sandbox from a template that carries dind support, then use the standard E2B SDK create call with a longer timeout. Verify with `docker version` once envd is up, since dockerd starts in the background.

Kata vs privileged runc for Docker-in-Docker, which should I use?

Use kata. It runs dockerd inside a Firecracker microVM so privileged access is confined to the guest, with full compose functionality. Privileged runc shares the host kernel, meaning a container escape compromises the host.

Why is docker not found inside my sandbox?

The env is running on a template without a container runtime. Check `abx envs <env> --json` for the templateRef and list available templates with `abx templates`; moving to a dind template is an env-level change that rolls the pool.

Does rootless Docker work as a safer alternative to privileged runc?

No. Rootless dind has been measured on these clusters and does not work under runc. The supported way to avoid dangerous host privilege is kata, where privilege is confined to a microVM.

How do I pull images from an internal registry inside a sandbox?

Check for an internal mirror that rewrites docker.io prefixes, and note that env registry credentials only cover the sandbox's own image. For pulls from inside the sandbox, run `docker login` yourself.