Skip to content

Releases: docker/sbx-releases

v0.50.0-rc1

v0.50.0-rc1 Pre-release
Pre-release

Choose a tag to compare

@docker-read-write docker-read-write released this 20 Oct 16:15
2329d12
docs(readme): link awesome-docker-sbx (#668)

v0.49.1

Choose a tag to compare

@docker-read-write docker-read-write released this 20 Oct 08:54
2329d12

Highlights

Docker Sandboxes v0.49.1 improves kit compatibility, proxy support for cloud connections, and sandbox shutdown reliability.

Note

v0.49.0 was skipped. These release notes cover all changes since v0.48.0.

What's new

Kits

  • sbx kit validate and sbx kit inspect accept --offline to check a local directory or ZIP kit without starting the daemon or signing in.
  • Creating sandboxes from local or Git v3 kits honors build-time --kit-arg values, including scoped overrides.
  • Sandboxes combining multiple agent kits, such as Claude and Codex, start successfully and receive guidance in each agent's context file.
  • On Windows, sandboxes can combine workload and mixin kits, including kits loaded through Windows junctions.
  • Kits declaring multiple OAuth credentials authenticate every declared service.
  • sbx kit sign warns when Git would change the signed file contents and invalidate signatures for git+ references.
  • Reading a kit directory rejects unsupported entries, such as named pipes and device nodes, instead of hanging. sbx kit pack rejects symlinks that would produce an archive Sandboxes cannot load.

Sandbox lifecycle and workspaces

  • SSH sessions start in the sandbox workspace, matching sbx exec.
  • SSH-agent access granted by a kit continues working in running sandboxes after the daemon restarts.
  • In newly created local sandboxes, Git preserves the host's ignore decisions for paths already present in the primary workspace. This applies to primary workspaces mounted at a Git repository root.
  • Sandbox startup waits for Docker to become ready without launching competing Docker daemons.
  • Daemon shutdown and sandbox reset no longer hang indefinitely when Docker is unresponsive or a kit registry operation stalls.
  • Sandbox reset handles concurrent operations more reliably, avoids false cleanup warnings, and identifies sandboxes it could not fully remove.
  • Port changes fail cleanly during sandbox creation or deletion, avoiding stale host bindings.
  • SSH connection attempts fail cleanly when the daemon is shutting down.
  • Cursor sandboxes no longer show an unexpected Workspace Trust prompt for workspace paths containing characters such as . or _.

Networking and cloud sandboxes

  • Explicit CIDR deny rules take precedence over matching domain allow rules when Sandboxes resolves the destination address.
  • Cloud commands, sbx move, the TUI, and cloud SSH honor configured proxies, including system and PAC proxies. Set proxy.sshDirect to true to connect cloud SSH directly on networks that permit direct SSH connections.
  • sbx mcp add completes OAuth discovery on networks that require an HTTP proxy, without needing --skip-ssrf-check.
  • Fixed uploads stalling while waiting for HTTP 100 Continue through intercepted HTTPS connections.
  • Fixed a Windows system-proxy watcher hang that could prevent the daemon from stopping.
  • Image pulls from public.ecr.aws work under the balanced network policy.
  • sbx policy refresh immediately refreshes policy, for example after an AI Governance change, instead of waiting for the next polling interval. Existing connections remain open.
  • sbx policy ls continues showing default-deny-all after a kit adds network rules.
  • Cloud connection and authentication errors include guidance for resolving the problem.

Authentication and MCP

  • Custom secrets using OPENAI_API_KEY or ANTHROPIC_API_KEY appear in the sandbox as expected.
  • sbx secret set-custom warns before replacing a different host or environment-variable mapping under the same placeholder.
  • sbx secret rm returns an error when no secret matches --registry, --placeholder, --host, or --env-name.
  • MCP gateway code-mode tools work on Windows hosts.

CLI, settings, and diagnostics

  • sbx policy ls, sbx settings ls, and sbx policy approval ls accept -q to print only rule IDs, setting keys, or approval IDs.
  • Configure daemon log size and retention with sbx settings set using daemon.log.maxSizeMB, daemon.log.maxBackups, and daemon.log.maxAgeDays.
  • The browser.enabled setting controls whether sandboxes can open the host browser.
  • sbx env reports unknown keys and invalid values with their source file, line, column, and field. Invalid values in a base file must be fixed even if a later file overrides them; this also applies to ~/.sbxenv.yaml and sbx env rm.
  • sbx settings set rejects incorrectly structured values for kit.allowedSources and kit.trustedSigners before saving them.
  • sbx cp clearly reports a missing destination directory without extra tar errors.
  • sbx diagnose reports running CLI and shim processes, warns when global network policy is not initialized, and detects a ZFS setting that can make image builds unusually slow.

Templates and installation

  • Full templates now include a C/C++ toolchain for compiling native code inside the sandbox.
  • The Linux tarball installer works for regular users on systems with AppArmor.

v0.49.1-rc2

v0.49.1-rc2 Pre-release
Pre-release

Choose a tag to compare

@docker-read-write docker-read-write released this 20 Oct 00:29
2329d12
docs(readme): link awesome-docker-sbx (#668)

v0.49.1-rc1

v0.49.1-rc1 Pre-release
Pre-release

Choose a tag to compare

@docker-read-write docker-read-write released this 19 Oct 19:30
2329d12
docs(readme): link awesome-docker-sbx (#668)

v0.49.0-rc3

v0.49.0-rc3 Pre-release
Pre-release

Choose a tag to compare

@docker-read-write docker-read-write released this 14 Oct 13:57
2329d12
docs(readme): link awesome-docker-sbx (#668)

v0.48.0

Choose a tag to compare

@docker-read-write docker-read-write released this 13 Oct 12:29
2329d12

Highlights

Docker Sandboxes v0.48.0 updates the CLI across all commands, with consistent terminal output and JSON/YAML formats. This changes flags, structured output, and prompts used by existing scripts. Review the migration details below before upgrading automated workflows.

The release also adds managed Codex and Claude Desktop SSH targets on macOS and Windows, additional v3 kit capabilities, and support for adding kits with startup commands to existing sandboxes.

Breaking changes

CLI flags, output, and automation

The CLI refactor changes both interactive use and scripting interfaces. Existing --json parsers may need updates even if their command lines still work. Scripts that parse human-readable output must switch to --format json or --format yaml.

Update command flags

Command Previous spelling Replacement or behavior
sbx run, sbx env run --detached Use --detach or -d. --detached is rejected.
sbx logout --yes, -y Use --force or -f.
sbx env plan, sbx env create, sbx env run --auto-approve, -y Use --force or -f.
sbx create --quiet, -q Use --no-progress. This suppresses progress, but still prints the creation summary.
sbx template save -d for the description Use --description.
sbx diagnose --output, -o Use --format table, --format json, --format yaml, or --format github-issue.
sbx secret ls, sbx secret rm --env Use --env-name.
sbx policy log --quiet, -q Removed; there is no replacement.

--format, --json, and -q are mutually exclusive on commands that use the shared output flags. Even --json --format json is rejected. Unsupported format values fail during flag parsing instead of falling back to human-readable output.

sbx settings ls is the primary spelling; sbx settings list remains an alias. sbx kit builder history rm keeps --yes / -y because its --force flag is forwarded to Buildx. The deprecated --global and mcp add --skip_auth flags remain accepted but hidden, with a deprecation warning on stderr; use --skip-auth instead of --skip_auth.

Update structured-output parsers

--json is an alias of --format json and emits the same document. JSON output structures have changed for the commands listed in the following table. Output uses snake_case field names; YAML is derived from the same representation.

Command Output change
sbx ls Returns the sandbox array directly instead of {"sandboxes": [...]}. Fields use snake_case, created_at and last_used_at use RFC 3339 timestamps, and rows include detached.
sbx template ls Returns the image array directly instead of {"images": [...]}, for local and cloud sandboxes.
sbx mcp ls locally Returns the server array directly instead of {"gateway": {...}, "servers": [...]}. Each server row carries gateway.
sbx policy log Local and cloud output use {updated_at, allowed: [...], blocked: [...]}. Entries contain sandbox_id, host, proxy_type, rule, reason, count, first_seen, and last_seen. --limit applies. This replaces local allowed_hosts / blocked_hosts and the cloud camelCase document.
sbx --cloud policy ls Field names change from camelCase to snake_case.
sbx ports Cloud rows use sandbox_port instead of port, alongside url. Local rows use host_ip, host_port, sandbox_port, and protocol.
sbx ports --publish / --unpublish locally Structured formats emit result rows with action: published or action: unpublished instead of human-readable lines. Warnings go to stderr.
Cloud volume create, volume ls, and volume inspect Fields such as ID, Name, and CreatedAt become id, name, and created_at. volume inspect defaults to a human-readable details view; request --format json for JSON.
sbx rm, sbx stop, sbx template rm, sbx volume rm Structured formats return an array of results with action, resource, name, and optional id and error. Actions are lowercase: removed, stopped, removing, stopping, or failed. Missing and failed targets are included.

For example, a script that extracts sandbox names from sbx ls --json must change its filter from .sandboxes[].name to .[].name.

Local and cloud output follow the same conventions. MCP list output still represents different resources: local registrations versus server usage across cloud sandboxes, so those rows differ beyond their shared name and type fields.

sbx prune --dry-run accepts --format json and --format yaml. Cloud ttl --format yaml emits YAML instead of JSON, and sbx diagnose supports YAML. sbx events --json remains an NDJSON stream, and sbx mcp auth --format text|json retains its command-specific formats.

Update non-interactive workflows

  • Confirmation prompts require terminal input. Piping an answer, such as echo y | sbx secret set …, no longer confirms the operation. Use --force / -f where the command provides it. Commands that require confirmation fail with exit status 1 when stdin is not a terminal.
  • Declining a confirmation returns a non-zero exit status consistently, including for removal, reset, and prune operations.
  • Read-only invocations and runs with --force do not start an interactive sign-in flow. Sign in before running automation that requires authentication. Read-only examples include ports SANDBOX, ttl SANDBOX, prune --dry-run, and diagnose; their modifying or upload variants are not read-only.
  • Without a terminal, sbx diagnose --upload saves the diagnostic bundle but skips uploading it and exits with status 0. A successful exit does not mean that an upload occurred.
  • Without a terminal, sbx create and sbx run fail if the workspace directory does not exist and print a mkdir -p hint. Create the directory before invoking the command.
  • Ctrl-D at a selection or free-text prompt cancels instead of accepting the default. Enter still accepts the default.

Terminal output and streams

Human-readable output changes across all commands: headings, status marks, indentation, progress, and result messages use a consistent format. sbx ls includes state marks and a creation-time column; sbx ls and sbx inspect identify detached sandboxes.

Results go to stdout. Errors, warnings, corrective hints, daemon-start progress, image pulls, and kit-build progress go to stderr. Update scripts that depend on exact message text or capture only one stream.

What's new

Security

  • Fixed sign-in enforcement ignoring allowedOrgs on macOS.
  • sbx cp blocks local paths that escape a sandbox workspace through symbolic links.
  • Cloud sbx cp downloads and sbx kit pack preserve restrictive destination permissions without temporarily exposing the replacement file. They account for permissions at completion and do not widen them. On Unix, cloud sbx cp refuses to replace files owned by another user; on Windows, permission preservation covers the read-only attribute. Special permission bits are retained where the kernel permits. This cloud-copy change does not affect local sbx cp.
  • sbx kit add checks the filesystem mount policy before recreating a sandbox and refuses the operation if its workspace or a saved mount is denied, matching sbx start.
  • Fixed the daemon crashing on a malformed request sent through an intercepted HTTPS connection.

SSH and desktop integration

  • On macOS and Windows, sbx setup ssh --auto-create registers Docker Sandbox connections in Codex and Claude Desktop. Each connection creates a dedicated sandbox on first use and reuses it on subsequent connections. These sandboxes have no host workspace mounted. Clone or copy your project into the sandbox to work on it.
  • Desktop SSH setup warns about missing authentication and provides local sign-in guidance for Codex and Claude. Repeating sbx setup ssh recognizes existing registrations even while the applications are running.
  • Closing a Cursor or VS Code window connected over SSH no longer stops the daemon and other running sandboxes.
  • SSH connections no longer fail because the CLI's initial feature lookup timed out before starting the daemon.
  • SSH-agent forwarding supports Windows OpenSSH and 1Password agents when SSH_AUTH_SOCK is not set.

Kits

  • V3 kits support capability groups, kit.env references, bundled agent skills, and the ssh-agent@1 and git-identity@1 capabilities. Selected optional groups retain their network rules, lifecycle files, and context; unsupported optional groups are skipped. Bundled skills can use directories outside the agent's home.
  • sbx kit add accepts kits with startup commands. Those commands run after the kit is added and on each subsequent sandbox start.
  • Sandbox containers expose the provisioned agent's name through SBX_AGENT for kit hooks and scripts.
  • sbx kit validate rejects kits whose credentials route the same host, identifying the conflicting services. The daemon logs the collision during sandbox creation.
  • Sandbox creation supports kits whose resolved lock exceeds Docker's container-label size limit.
  • sbx kit pack excludes its output from the archive, prevents writes into the kit's files/ directory, and handles Windows 8.3 output paths without renaming the destination or including a previous archive. The output path must end in .zip and cannot be a named pipe, socket, or device node.
  • An unresolvable kit-file path no longer causes sbx kit push to fail.
  • Kits that declare an agent-context directory now have their agent instructions file written in that directory instead of beside the workspace, and large workload and mixin kit combinations no longer fail to create with "failed to run sandbox contain...
Read more

v0.48.0-rc4

v0.48.0-rc4 Pre-release
Pre-release

Choose a tag to compare

@docker-read-write docker-read-write released this 08 Oct 00:17
2329d12
docs(readme): link awesome-docker-sbx (#668)

v0.48.0-rc3

v0.48.0-rc3 Pre-release
Pre-release

Choose a tag to compare

@docker-read-write docker-read-write released this 06 Oct 12:10
2329d12
docs(readme): link awesome-docker-sbx (#668)

v0.47.0

Choose a tag to compare

@docker-read-write docker-read-write released this 05 Oct 15:46
2329d12

Highlights

Docker Sandboxes v0.47.0 adds automatic cleanup after agent sessions with sbx run --rm and a kit capability for keeping local sandboxes running after sessions disconnect.

What's new

Security

  • Fixed OAuth token interception when a provider hostname uses different capitalization or a trailing dot, preventing real tokens from reaching the sandbox instead of the proxy's placeholders.
  • The proxy rejects unrecognized OAuth token grants and prevents their responses from replacing host-managed credentials. Supported in-sandbox sign-in flows remain available.
  • The proxy returns an error when it cannot safely mask a successful Anthropic API-key creation response, instead of forwarding the unmasked response to the sandbox.
  • Included since v0.46.0: fixed raw TCP connections to denied hostnames being permitted by an allow rule for the hostname's resolved IP address. This fix applies to TCP; the related UDP case with multiple tracked hostnames remains outside its scope.
  • Included since v0.45.0: CLI-created cloud hostname allowlists no longer gain implicit 0.0.0.0/0 and ::/0 rules. Existing stored policies are unchanged; remove those rules or recreate the policy to apply the restriction. Explicit IP and CIDR allowances remain supported.
  • The proxy rejects TLS handshakes that fill its inspection buffer before a complete ClientHello can be checked on a non-MITM CONNECT tunnel or during the transparent proxy's late handshake check.
  • The proxy closes incomplete TLS handshakes on those paths after a two-minute timeout instead of retaining the connections for the sandbox's lifetime.
  • Sandboxes reject UDP to multicast, link-local, and unspecified destinations, limited broadcast, and broadcast addresses derived from the host's interface prefixes, regardless of network policy. UDP to host.docker.internal is unaffected. Broadcast addresses configured outside that derivation and networks reachable only through routes are not covered by this check.
  • Kit pulls enforce limits on registry-declared blob sizes, decompressed content, and archive entry counts.

Sandbox lifecycle and workspaces

  • sbx run --rm removes a local or cloud sandbox after its agent session ends. It cannot be combined with --detached. If a cloud session is interrupted, such as by a dropped connection, the sandbox is kept and the CLI prints the command to remove it.
  • Running sbx run -d against an existing local sandbox keeps it running after sessions disconnect, until you stop or remove it.
  • Dynamic mounts and permissions created through symlink paths can be removed without reappearing after a restart. Incompatible saved records include recovery guidance.

Kits

  • Local kit inspection, validation, and pulling require the daemon to be running.
  • Kits can declare com.docker.sandbox/long-running@1 to keep local sandboxes running after all sessions disconnect. Cloud sandboxes and sbx kit add cannot provide this capability: required entries are rejected, and optional entries are skipped.
  • sbx kit sign and sbx kit push --sign succeed on registries that refuse manifest deletion, including GitHub Container Registry and Docker Hub, instead of reporting failure after attaching the signature.
  • Adding a kit to a sandbox whose guest has stopped responding fails without leaving the sandbox unusable until the daemon restarts.

Cloud sandboxes

  • sbx --cloud ttl reports stopped sandboxes as stopped instead of expired. The time-to-live restarts when the sandbox resumes. JSON output includes stopped and ttl_paused; while the sandbox is resuming, only ttl_paused is true.
  • Creating a cloud sandbox or moving a local sandbox to the cloud applies cloud policy and the kit's network rules without copying locally added network rules. Moving a sandbox with local HTTP method or path restrictions warns that those restrictions will not apply in the cloud.

Settings and proxies

  • Upstream proxy recovery no longer blocks unrelated sandboxes or deletes isolated container data when credentials are unavailable. Local host services remain reachable.
  • sbx settings set rejects invalid upstream proxy values before saving them.

MCP

  • MCP authorization requests offline_access when the server advertises it and authorization uses saved defaults or resource-required scopes, so the server can issue refresh tokens. Explicit --scope values are unchanged. Run sbx mcp auth again to obtain a grant with a refresh token for existing credentials.
  • Fixed MCP gateway availability in sandboxes created from the TUI and when connecting over SSH after a daemon restart or automatic sandbox creation.

CLI and updates

  • sbx env reports the correct file, line, and column for unrecognized keys even when another entry in the file fails custom validation. Multiple validation errors appear on separate lines.
  • Help remains available when the settings directory is unwritable or local settings cannot be opened, with a warning instead of a panic.
  • Host-port collisions from sbx ports --publish identify the occupied binding and offer a retry with an automatically allocated port when safe.
  • Windows update notices appear only after WinGet confirms that the version is available in its catalog.

2026-10-21 — Nightly build (6bb9bc2)

Pre-release

Choose a tag to compare

@docker-read-write docker-read-write released this 21 Oct 04:03
2329d12

Note

Immutable macOS assets for the sbx@nightly Homebrew cask — 2026-10-21 (6bb9bc2eb212f187e55d1028e7906497ea01cc5c).
All platforms are available from the nightly release.