Skip to content

v0.55.0

Latest

Choose a tag to compare

@octo-sts-prod-docker-rw-01 octo-sts-prod-docker-rw-01 released this 30 Nov 15:26
2329d12

Highlights

Docker Sandboxes v0.55.0 lets you preview and prune unused local images, fetch commits from your host into a clone-mode sandbox, and stream daemon logs. This release also strengthens credential and workspace protections, improves GPU and guest page-size support on arm64 Linux, and supports additional Windows workspaces on mapped SMB drives. Cloud network policy is managed through Docker governance.

Breaking changes and upgrade actions

Save settings previously set through environment variables

Version 0.55 stops reading the environment variables listed below. Before upgrading, use sbx settings set <key> <value> to save each override you rely on.

Old environment variable sbx settings key
DOCKER_SANDBOXES_CLIPBOARD_IMAGE_PASTE clipboard.imagePaste
DOCKER_SANDBOXES_KIT_ALLOWED_SOURCES kit.allowedSources
DOCKER_SANDBOXES_KIT_ALLOW_LOCAL kit.allowLocalKits
DOCKER_SANDBOXES_KIT_IGNORE_TLOG kit.ignoreTransparencyLog
DOCKER_SANDBOXES_KIT_REQUIRE_SIGNATURE kit.requireSignature
DOCKER_SANDBOXES_KIT_TRUSTED_SIGNERS kit.trustedSigners
DOCKER_SANDBOXES_MODEL_PROVIDERS model.providers
DOCKER_SANDBOXES_SSH_AUTO_CREATE ssh.autoCreate
DOCKER_SANDBOXES_SSH_DEFAULT_AGENT ssh.defaultAgent
DOCKER_SANDBOXES_SSH_DEFAULT_TEMPLATE ssh.defaultTemplate
DOCKER_SANDBOXES_SSH_WORKSPACE_ROOT ssh.workspaceRoot

Run sbx daemon restart after changing SSH settings.

For example, if you use an environment variable to require signed kits, run sbx settings set kit.requireSignature true before upgrading. Without a saved setting or administrator policy, signatures are optional and local kits are allowed.

Environment variables for the sandbox proxy and proxy exclusions still work. Model providers can also continue to read API keys through apiKeyEnv.

Custom secret headers and minimum length

Local custom secrets are substituted only into explicitly bound request headers or the headers in secret.custom.defaultHeaders. Existing secrets without header bindings follow that setting, whose default includes common authentication headers such as Authorization and X-Api-Key.

If a service uses another header, bind the existing secret to it:

$ sbx secret set-custom --placeholder <PLACEHOLDER> --header X-Custom-Key

Find the placeholder with sbx secret ls. Include --sandbox <SANDBOX_NAME> for a sandbox-scoped secret. This command preserves the secret's value, hosts, and source. Alternatively, add the header to secret.custom.defaultHeaders for all local secrets that follow the defaults.

Custom secrets must contain at least eight characters, including values from dynamic sources. Existing shorter secrets stop being substituted and must be replaced with longer values. Built-in provider keys are exempt. Restart any daemon older than API 0.53.0 before using secrets without explicit header bindings.

HTTPS for host credentials

External endpoints used by local sandboxes must use HTTPS to receive host-managed API keys, OAuth tokens, registry credentials, or custom secrets. Ordinary HTTP requests still follow network policy but receive no host-credential substitution. Managed OAuth token exchanges over HTTP are rejected with HTTP 403. Update affected endpoint URLs to HTTPS. Authentication to daemon-managed internal services and the local model server is preserved.

Sensitive host directories

Local sandboxes reject new workspace and host mount paths that overlap Sandboxes configuration, state, kit storage, or filesystem credential directories, including read-only access. Broad workspaces such as your home directory can trigger this restriction.

Choose a narrower project directory. If you intend to grant access to sensitive host data, set mounts.allowSensitiveState to true before creating or recreating the sandbox. Organization filesystem policy still applies. Turning the setting off doesn't revoke access already admitted.

Removing running sandboxes

sbx rm and sbx env rm refuse to remove a running local sandbox, even when no session is attached. Stop it first with sbx stop, or use --force to remove it while running. --force also skips confirmation.

Overlapping published ports

A sandbox rejects port mappings that overlap an existing binding on the same host port, transport, and address family. For example, a wildcard 0.0.0.0:7070 binding conflicts with a default loopback binding on port 7070.

On macOS, previously saved overlapping TCP mappings can prevent the sandbox from starting. Interactive sbx run offers another host port; non-interactive starts return an error identifying the conflict.

Environment adoption and older sandboxes

sbx env exec requires a local sandbox to belong to the environment before it will run commands or forward environment variables. If only the name matches, use interactive sbx env run to adopt the existing sandbox.

Sandboxes created before v0.42 again share the host OAuth login for Claude, Codex, Cursor, Droid, and OpenCode. If you signed in inside one of these sandboxes on v0.51 or later, sign in once more to resume using the shared login.

What's new

Local image cleanup

Run sbx template prune --dry-run to preview which unused images can be removed. The default selection includes unused untagged and digest-only images. Use an age filter to narrow the selection. Adding --all includes unused tagged images and saved templates, so preview that selection before confirming. Images in use remain protected. On standalone Docker Next, pruning stopped sandboxes also removes their unused images. sbx df now shows local kit registry cache usage and estimates how much space cleanup can reclaim.

Fetch host commits in a clone-mode sandbox

To use the host checkout as the sandbox's Git origin, run sbx settings set clone.originFromSource true on the host and start the sandbox. After you commit changes on the host, run git fetch origin inside the sandbox, then merge or rebase when you're ready. The host mount is read-only. By default, the sandbox inherits the host repository's origin URL.

Quieter scripts

Use sbx exec --no-progress for local commands or sbx run --no-progress to suppress sandbox startup messages. Command output and errors are still available. Cloud runs also honor --no-progress when resuming a named sandbox.

Guest memory page sizes

sbx create and sbx run accept --page-size 4k, 16k, or 64k, subject to platform support. Linux arm64 hosts with 64 KB pages, including NVIDIA DGX Spark, boot a matching guest by default. Use --page-size 4k when a build tool requires 4 KB pages.

The page size persists across restarts. Passing the flag when reconnecting doesn't change an existing sandbox. macOS supports 4 KB and 16 KB guests on arm64; Windows and x86_64 support 4 KB only.

If the host cannot boot the requested guest kernel, sbx create now explains why. On supported Linux GPU hosts, the sandbox includes the NVIDIA hook needed by docker run --gpus all. GPU startup errors identify problems such as missing VFIO kernel modules or a GPU already in use.

Daemon logs

Use sbx daemon logs to show the last 100 log lines, --tail <N> to change the count, or --follow to stream logs while reproducing a problem.

Windows workspaces

Additional workspaces support mapped SMB drives while preserving mount targets, read-only access, and filesystem policies. Keep the saved drive mapping available when restarting the sandbox.

Cloud network policy in Docker governance

Cloud network policy uses Docker governance. Account-level sbx --cloud policy commands edit your Docker governance policy, which also applies to local sandboxes. Set sandbox-specific rules at creation with --allow-network and --deny-network. The CLI migrates legacy policy automatically and reports conflicts that need resolving.

Bug fixes and improvements

Security and credentials

  • Kit credential injection respects the destinations approved separately for API keys and OAuth in credential bindings. Bindings with no approved destinations are treated as missing.
  • The proxy masks custom secrets echoed in response headers and bodies after credential substitution. Filtering is best effort and doesn't cover WebSocket messages or every transformation a service might apply. Masking can change the response format; partial responses and unsupported content encodings return HTTP 502.
  • Sandbox networks remain blocked until their egress policy is installed, including after daemon restarts.
  • Internal sandbox commands and SSH relay diagnostics have bounded output capture to prevent excessive daemon memory use.
  • Repeating sbx secret set-custom for the same hosts, environment variable, and scope preserves the placeholder. Bulk secret import and setup preserve existing dynamic secrets by default. On Windows, a conflicting Credential Manager entry produces an error and preserves the existing secret.
  • Secret commands reject an explicitly empty sandbox selector before changing global credentials. Failed credential-store writes report an error. MCP header validation errors and cloud recovery commands no longer print credential values.
  • OpenAI OAuth sign-in opens the callback listener before launching the browser and reports success after the credentials are saved and synchronized. Canceling after sign-in or switching to an API key no longer skips daemon credential and policy updates. Codex sign-in and refresh work through the credential proxy again.

Ports and networking

  • sbx port ls shows mappings retained by stopped sandboxes as inactive. Republishing a retained mapping succeeds instead of reporting a conflict, and dual-stack bindings appear in a consistent order.
  • Publishing a port on a stopped sandbox no longer intermittently fails or leaves an unreachable binding. A non-detached sandbox started by sbx port publish stops shortly after the command exits unless another session keeps it running. The saved mapping remains available on subsequent starts.
  • TCP forwarding through sbx ssh proxy ends when the server inside the sandbox closes the connection.
  • Fixed HTTPS certificate verification through the sandbox proxy for images without /usr/local/share/ca-certificates.
  • Automatically started daemons apply the stored tls.allowNegativeSerial and tls.postQuantumKeyExchange settings.
  • Requests that use injected credentials retain the client's HTTP version. This fixes failures with HTTP/1.1 endpoints and lets gRPC and other HTTP/2-only clients use intercepted hosts.
  • sbx create --deny-network and sbx run --deny-network apply deny rules before startup traffic can reach a blocked host. Governance denials include the server's reason, and policy commands on a fresh installation point you to sbx policy init.

Cloud sandboxes and kits

  • Out-of-range cloud creation errors show the supported TTL range. Structured cloud sandbox listings identify sandboxes whose TTL is paused.
  • Cloud launches can use v3 kits directly. A bundled v3 kit bakes a new template on its first cloud launch after upgrading. Kits on uploaded templates skip that step.
  • Schedule updates refuse changes that would discard a saved process user. Kits whose capability configuration reads kit.env can be launched directly with sbx --cloud run but cannot be scheduled.
  • Cloud MCP listings distinguish sandboxes with the same unqualified name. Cloud sessions started from a UTF-8 host locale use C.UTF-8.
  • Kit mixins can use delivery: inline on agent-context@2 to put guidance directly in the local agent profile. Cloud continues to deliver mixin guidance in a per-kit file.
  • Source-kit builds and cache reuse use the selected daemon when several apps run on the same host. A failed kit swap preserves unrelated containers. Saving a template with an invalid tag leaves the sandbox running.

CLI, authentication, and diagnostics

  • When several sandboxes match an agent and working directory, interactive sbx run asks which one to use. Use --name <SANDBOX_NAME> to select one without prompting.
  • An intercepting proxy's response from Docker's sign-in endpoint no longer signs you out. A genuine rejection of your Docker login prompts you to sign in again.
  • Policy profile listings and sandbox profile selection exclude Personal Policy profiles and show corporate governance profiles.
  • MCP registration checks no longer fail when only a stored OAuth client secret changes.
  • CLI errors show the service's explanation without redundant client prefixes or protocol status codes. Connection errors caused by firewalls or TLS-inspecting proxies identify the affected host and suggest diagnostic steps.
  • sbx version includes the build ID for CI-built binaries. Release clients detect a daemon from a different build even when its version matches and require a restart.
  • The daemon exits with an error if its sandbox backend fails to start. sbx diagnose reports the active global network policy preset.
  • The terminal resizes to match the host after it wakes from sleep. Suggested commands preserve paths containing tabs and PowerShell paths containing apostrophes.
  • Startup status distinguishes a daemon still starting its backend from a stopped daemon. On macOS, opening Docker Sandboxes from Finder or Launchpad opens Terminal with CLI help and an interactive shell. The retired sbx gui command has been removed.
  • Pending policy approvals are available in JSON and YAML. Policy setup messages, kit builder diagnostics, and warnings from daemon restart and secret import no longer mix with command results.
  • sbx skills update --help warns that updating a skill replaces local edits. Kit startup and install messages identify where to find logs inside the sandbox.