Docker Sandboxes Add BAND Agent Collaboration

Daily Code Guide Docker News

Docker has introduced a way for an AI agent running inside a Docker Sandbox to participate in BAND rooms with human users and other agents. The connection turns an isolated, repository-focused agent into one participant in a larger collaborative workflow without requiring every agent to use the same model, framework, workspace, or infrastructure.

For developers and platform teams, the important detail is that collaboration and execution remain separate concerns. BAND provides the communication layer, while Docker Sandbox supplies the isolated environment in which an agent can inspect a project and perform work.

What changed

Docker’s example uses the BAND Python kit to connect a repository agent to a BAND room. The example identifies an agent with a BAND agent UUID and uses an agent API key to authenticate its platform requests. Once connected, the agent can exchange messages with people and other agents through the room.

The BAND Agent API uses REST for commands sent from an agent to the platform and WebSocket for receiving messages and events. BAND recommends WebSocket for real-time delivery. Its REST messages/next endpoint is intended for startup synchronization and crash recovery rather than ordinary polling. The API also defines processing, completed, and failed message states, allowing interrupted work to remain available for retry after an agent restarts.

This model is useful for workflows in which one agent handles repository diagnosis, another performs implementation work, and people coordinate or review the results. It does not mean Docker is standardizing the underlying models or agent frameworks. The agents can retain different tools and implementations while using BAND as the shared communication path.

Ad

How the Docker example is configured

The documented example clones the https://github.com/dockersamples/band-ai-sbx-demo repository, configures the agent UUID in band.yaml, and uses the Docker-published BAND Python kit. The example references both docker.io/bandhq/band-python-kit:latest as the published location and docker.io/bandhq/band-python-kit:6.0.0 for the documented setup. The available documentation does not establish that the latest tag resolves to version 6.0.0, so those identifiers should not be treated as interchangeable without testing.

The example mounts the current working directory and permits api.anthropic.com before starting a sandbox named band-repo-doctor with sbx run --name band-repo-doctor. The Claude-based path therefore requires an Anthropic API key or configured Anthropic credential and available API credits. That example should not be read as a complete compatibility statement for every model provider.

Before running it, users must install Docker Sandboxes and authenticate with sbx login. A BAND account, a BAND agent or remote agent, its UUID, and an agent API key are also required. The BAND Python SDK requires Python 3.11 or later when used directly.

Host requirements and SDK options

Docker’s installation documentation lists support for macOS Sonoma 14 or later on Apple silicon, Windows 11 on 64-bit Intel or AMD with Windows Hypervisor Platform for local sandboxes, and Ubuntu 24.04 or later on 64-bit Intel, AMD, or Arm processors. Local Linux sandboxes require KVM. Cloud sandboxes have different prerequisites and do not require that local virtualization setup. Docker’s supplied documentation requires Sandbox CLI version 0.45.0 or later for cloud sandbox workflows.

The BAND-maintained Python SDK uses adapter extras to connect Python agents to the platform. Its documented examples cover integrations including LangGraph, Pydantic AI, CrewAI, Anthropic, Claude SDK, Codex, Gemini, Google ADK, Letta, Agno, Strands, Nooa, OpenCode, and A2A. This is a list of documented adapters and examples, not a complete compatibility matrix across all SDK, kit, host, and adapter versions.

The SDK defaults to BAND Cloud but documents optional BAND_REST_URL and BAND_WS_URL settings for self-hosted endpoint configurations. Those settings establish endpoint configuration support; the supplied documentation does not establish the full operational model, service terms, regional availability, or support boundaries for a self-hosted deployment.

Isolation depends on workspace mode

Docker describes local Sandboxes as microVM-based environments with their own Linux kernel and separate filesystem, network, and Docker Engine boundaries. That separation is relevant when an agent is allowed to inspect files, execute commands, and communicate with external services.

Workspace selection changes the practical risk. A direct workspace mount gives the agent read-write access to the host working tree. That is convenient for workflows that expect changes to appear immediately, but it also means agent-generated changes can directly modify the host repository.

Clone mode provides a different boundary: the repository is mounted read-only, and the agent works on a private in-sandbox clone. Changes do not directly modify the host repository. However, the mounted repository may still contain sensitive untracked files that the agent can inspect. Mountless, direct-mount, and clone-mode workspaces should therefore be chosen according to the repository and the degree of write access the workflow requires.

Credentials and network policy

Docker’s credential documentation describes a host-side proxy model. For proxy-managed credentials, the real value remains on the host and is injected into outbound requests; the sandbox normally sees a sentinel value rather than the credential itself. Credentials can be stored in the host operating system’s keychain or, on some headless Linux systems, in a permission-protected configuration file.

Docker documents sandbox-scoped and global credentials, custom domain-and-environment-variable credentials, OAuth flows, and registry credentials as separate mechanisms. OAuth passthrough can intentionally provide less isolation than the normal proxy-managed pattern. On headless Linux systems without a Secret Service, a process or user able to read the protected credential file may be able to retrieve its contents.

Outbound TCP traffic passes through a host-side proxy that enforces network policy. Outbound UDP is disabled by default, and ICMP is blocked according to Docker’s isolation documentation. Teams should allow only the BAND and model-provider destinations required by their selected kit, then inspect policy behavior with the available network-policy tooling where appropriate.

What you should do

  1. Confirm the host prerequisites. Check the documented operating system, processor, virtualization, and Sandbox CLI requirements before choosing local or cloud execution.
  2. Start with the least permissive workspace mode. Use clone mode when direct modification of the host repository is not acceptable. Use a direct mount only when the workflow requires host-visible writes.
  3. Keep credentials on the host where possible. Use Docker’s documented credential mechanisms instead of placing real keys in sandbox files or ordinary environment variables.
  4. Configure the BAND identity carefully. Set the selected agent UUID and agent API key as documented, then verify WebSocket delivery and room participation before delegating repository work.
  5. Pin the tested components. Treat the 6.0.0 kit reference and the latest tag as different identifiers. Test and pin the Docker Sandbox, kit, Python SDK, and adapter versions used in production.
  6. Review generated changes. Isolation limits the execution and workspace boundaries described by Docker, but it does not remove the need to inspect agent-generated code and repository changes before trusting them.

Availability and remaining limits

The documented setup is available as a Docker Sandbox kit and BAND integration, but the supplied documentation does not provide a complete compatibility matrix or establish pricing, quotas, retention policies, regional availability, or service-level terms. BAND API-key rotation, expiration, and revocation behavior are also not documented in the supplied API material.

For teams evaluating the design, the immediate value is architectural: a repository agent can remain in a local or cloud sandbox while collaborating through BAND with other agents and human participants. The operational details still need to be pinned and tested for the specific host, adapter, model provider, credentials, and deployment model being used.

Sources

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Ad
Ad
Ad