Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Docker 8 min read How-to mediumAdept

Reproducible ESP32 Firmware Development with Docker and Docker Sandboxes

Pinning the official espressif/idf Docker image makes ESP32 builds reproducible across developers and CI, and isolated containers let different ESP-IDF versions run side by side against separate boards. Practical details include running as your own UID with HOME=/tmp, persisting ccache in a volume, passing through the dialout group, using udev symlinks for stable board names, and defining the setup in Makefile or Compose. On macOS/Windows and inside Docker Sandboxes (microVMs with their own Docker daemon, a proxied network policy and credentials injected by the host), an RFC2217 network serial bridge lets builds and AI agents like Claude Code flash and monitor real hardware while reaching only one published port. Caveats: sandbox builds are slower than native containers, and agent diffs still need review.

Related posts

  • Empty sandboxes break developer experience

    Docker mediumAdept

    Docker Sandboxes kits turn empty, ephemeral agent sandboxes into usable dev environments by declaring in a spec.yaml what tools to install, files and env vars to add, which network domains are allowed, and which credentials to wire in. Credentials stay on the host: the agent sees a sentinel value like "proxy-managed" and the sandbox proxy injects the real Authorization header only for approved service domains. Small mixin kits (Java, gcloud, Tessl skills, YouTube transcripts) stack via repeated --kit flags. Distributing them as versioned OCI artifacts makes setup repeatable and shareable, so developers aren't tempted to skip isolation and run agents on the host.

  • Where should your code live in a Docker Sandbox?

    Docker mediumAdept

    Docker's sbx sandboxes for coding agents support three ways to place a repository, and each changes how the human participates. Mounting the host checkout gives live shared editing and hot reload, but branch switches and dependency installs are shared, and native binaries like esbuild can break across Linux and macOS/Windows. Mounting a host git worktree isolates tasks but leaves the agent without Git, because the .git file points outside the mount. Clone mode or a mountless sandbox keeps an independent checkout with full Git, at the cost of handoff via remotes, `sbx ports` publishing for previews, and losing files when the sandbox is deleted.

  • Why AI Agents Need Isolation

    Docker easyNovice

    AI coding agents that run commands, install packages and handle credentials should execute behind an isolation boundary rather than directly on the developer's host. Docker Sandboxes (sbx) runs agents in microVMs instead of plain containers, because containers share the host kernel. Docker built its own VMM rather than using Firecracker so the same model works on macOS and Windows as well as Linux. Credentials stay on the host: the agent sees a sentinel placeholder, and a proxy swaps in the real auth header on outbound requests. Sandbox Kits package tools, network rules, credentials, files, startup commands and agent memory (e.g. AGENTS.md) into reusable specs, either as stackable Mixin Kits that extend an existing agent or as Agent Kits that define a full agent environment from scratch.

  • Running AI agents in GitHub Actions with Docker Sandboxes

    Docker mediumAdept

    GitHub Agentic Workflows (gh-aw 0.82.9) supports Docker Sandboxes (sbx) as an agent runtime, so a CI coding agent gets root, sudo and unrestricted shell inside a disposable microVM with its own kernel and private Docker daemon. Outside that VM it is limited by a network allowlist, a read-only token and a safe-output job that may only touch src/**. In the worked example, a Copilot agent on an ubuntu-24.04 runner runs a Java 21 Testcontainers/PostgreSQL suite, adds a regression test exposing a case-sensitive email uniqueness bug, applies a one-line normalization fix, and opens a draft PR. The run took about 11 minutes, and setup needs Docker credentials as secrets plus a KVM-capable host for self-hosted runners.

  • Building Reproducible AI Evaluation Workflows with Docker Sandboxes

    Docker mediumAdept

    The SBX AI Evaluation Kit is an open-source Docker Sandboxes Mixin Kit that makes AI evaluation runs reproducible by fixing the execution environment, not just the prompt, model and scorer. Evaluations are defined in YAML and run through an executor abstraction, so the same definition can execute locally or inside Docker Sandboxes by changing one config field. Each run produces a structured JSON artifact recording the executor, command, stdout/stderr, exit code and duration, plus a digest that links the artifact to its configuration. Suites group several evaluations and add an aggregated summary. The kit does not run models or score results; it only executes configured commands consistently and preserves evidence of what ran.

The quest for software engineering knowledge.

Look:
Layout: