Repository navigation
Releases
v0.55.0-rc5
docs(readme): link awesome-docker-sbx (#668)
v0.55.0-rc4
docs(readme): link awesome-docker-sbx (#668)
v0.54.1
v0.54.1-rc1
docs(readme): link awesome-docker-sbx (#668)
v0.54.0
0.54.0
Highlights
Docker Sandboxes v0.54.0 adds dedicated port management commands and a TLS compatibility setting for networks that block post-quantum key exchange. It also strengthens generated SSH configuration and clone-mode Git access, improves cloud sandbox creation, and makes CLI errors and output more consistent.
Breaking changes and upgrade actions
Refresh generated SSH configuration
Generated SSH configuration prevents crafted host or user names from executing shell commands with older OpenSSH clients. After upgrading, rerun sbx setup ssh for local connections and sbx --cloud setup ssh for cloud connections to update existing configuration.
Storage paths when running as root
On Unix, running sbx as root uses root's registered home directory and the default storage, credential, and daemon endpoint locations. Inherited overrides, including HOME, XDG_CONFIG_HOME, XDG_STATE_HOME, XDG_CACHE_HOME, SANDBOXES_STORAGE_ROOT, and DOCKER_SANDBOXES_API, are ignored. Ordinary users retain their existing paths and environment overrides.
Before upgrading, stop any older root daemon that uses custom storage. The custom storage data is left untouched.
Clone-mode Git remote transport
Fetching from a clone-mode sandbox's sandbox-<name> Git remote now uses the daemon socket, restricted to your host user, instead of an unauthenticated localhost TCP port. Starting the sandbox refreshes its remote configuration. Fetching requires the sandbox to be running.
For Git clients that ignore the remote's uploadpack setting, enable TCP compatibility with sbx settings set clone.legacyTcpRemote true. This takes effect the next time the sandbox starts and exposes the repository and its history to other local accounts on the host. Leave the setting disabled to use the daemon socket. Clone-mode sandboxes using the default transport reject publishing sandbox TCP port 9418.
What's new
Port management
Use dedicated subcommands to manage ports on local and cloud sandboxes:
sbx port ls <SANDBOX>lists published ports.sbx port publish <SANDBOX> <HOST_PORT>:<SANDBOX_PORT>publishes a port. Omit the host port to assign one automatically.sbx port unpublish <SANDBOX> <SANDBOX_PORT>removes all host mappings for that sandbox port. Specify<HOST_PORT>:<SANDBOX_PORT>to remove a single mapping.
The legacy sbx ports command still works but is deprecated.
Networking and policy
- Set
tls.postQuantumKeyExchangetofalseif a firewall or TLS-inspecting proxy drops or stalls Sandboxes HTTPS connections because it cannot handle post-quantum key exchange. Runsbx settings set tls.postQuantumKeyExchange false, thensbx daemon restart. The setting defaults totrue; restore it and restart the daemon to re-enable post-quantum key exchange. sbx policy check networknames the rule that allowed a target. Policy checks explain when further evaluation is needed and how to check a specific HTTP request.sbx policy --helpexplains hostname-blocking limitations when an allowed and denied host share an IP address.- SSH reverse port forwarding no longer consumes a CPU core after its input socket is half-closed.
Sandbox lifecycle, kits, and agents
sbx runno longer fails with “network already exists” after an earlier start failed partway.- When a saved mount's source resolves to a different directory, startup refuses the mount. Remove it with
sbx umount, then mount the intended directory again. - Kit installation failures preserve command diagnostics and report network denials observed during installation.
- Image cleanup preserves assembled images referenced by saved kit locks or containers.
- Kit validation checks inherited configuration and reports inherited warnings.
- Existing kit permissions may require confirmation again after upgrading because permission checks use stronger service digests.
- Reattaching to a Kiro or Cursor sandbox relaunches the agent with the command used by its published kit.
Authentication and MCP
sbx loginreports failure with diagnostic steps when it cannot reach Docker's sign-in service after browser sign-in. Settings errors suggest signing in when administrator settings are unavailable.- OAuth secret sign-in respects
--no-inputinstead of opening browser authorization. - Declining secret replacement or environment removal cancels the command with a nonzero exit status.
sbx inspectshows a local sandbox's static or dynamic MCP mode and connected servers. These describe the sandbox gateway; usesbx mcp lsto list host registrations.- Loading an MCP server into a cloud sandbox prints a success acknowledgment.
Cloud sandboxes
- Creating a sandbox honors the requested architecture when combining published kits with locally built mixins.
- A kit's network allow list no longer replaces the account's network policy when neither
--allow-networknor--deny-networkis supplied. - Cloud creation rejects TTL values outside 15 seconds to 24 hours, explicitly empty timeout actions, and explicitly empty sandbox names before provisioning.
- Declining a sandbox move cancels it with a nonzero exit status. An explicitly empty destination name is rejected before work starts.
- Cloud API connection failures behind HTTP proxies report that the API is unreachable and suggest
sbx --cloud diagnose, instead of returning a generic 500 error. - File copies distinguish failed path checks from missing source paths.
- Cloud exec rejects
--detach-keys, matching local exec. Omit this flag for bothsbx execandsbx env exec. - Scheduled runs accept
--workdirand-w. Schedule durations accept case-insensitive units. - Help clarifies cloud template selection, inherited sizing, incompatible launch options, and the supported cloud SSH setup workflow.
CLI and diagnostics
sbx diagnose --format jsonand--format yamlinclude a stableidfor each check. Match checks byidin scripts;nameis display text that can change.- Diagnostic bundles use unique output files so existing workspace links cannot cause other host files to be overwritten.
- MCP progress, warnings, client-secret guidance, and secret-list diagnostics go to stderr, preserving stdout for command results.
- Sandbox and kit inspection report output write failures instead of succeeding silently.
- Cloud-only commands report the required mode without starting a local daemon.
- Installed skills can be removed with the
sbx skills deletealias. - Argument validation, shell completion, and secret-removal help more consistently reflect supported options. Kit signing rejects conflicting credential sources, and kit push rejects signing options unless signing is enabled.
- A sandbox with a saved mount no longer restarts when the mount's source path now resolves to a different directory; remove the mount with
sbx umountand mount the directory again. (CVE-2026-126139)
v0.54.0-rc7
docs(readme): link awesome-docker-sbx (#668)
v0.54.0-rc4
docs(readme): link awesome-docker-sbx (#668)
v0.54.0-rc3
docs(readme): link awesome-docker-sbx (#668)
v0.53.0
Highlights
Docker Sandboxes v0.53.0 adds local disk usage reports, Claude in Chrome access, and automatic loopback port publication for kits. It also improves recovery after host network changes, sandbox startup, credential handling, and command output for scripts.
Note
v0.52.0 was skipped. These release notes cover changes since v0.51.0.
Breaking changes
Gemini agent retirement
The built-in gemini agent name is retired. Existing Gemini sandboxes keep running, but cannot be moved with sbx move.
Agent arguments
sbx run <agent> -- <args> preserves the image's entrypoint arguments when you pass a prompt or subcommand, matching cloud behavior. If the entrypoint already includes a subcommand, omit that subcommand from your arguments to avoid running it twice. For example, use sbx run kiro -- "explain this project" without repeating chat. To run a different subcommand, invoke the agent directly with sbx exec in a running sandbox.
Credential providers and settings
- Built-in secret reference providers run host tools from a temporary directory and ignore empty or relative
PATHentries. Put provider tools in absolutePATHdirectories, use absolute configuration paths, and configure asdf or mise versions globally instead of relying on project-only selections. DOCKER_SANDBOXES_USE_DHIis no longer read. Usesbx settings set platform.images.useDHI trueto select Docker Hardened Image templates.sbx logoutrequires confirmation even without a running daemon. Use--yesor-yin scripts.sbx --cloud logoutwarns that signing out affects the whole account, then performs the same sign-out.- Unsupported
--detachand--privilegedflags have been removed fromsbx execandsbx env exec. Local exec commands also reject--detach-keysinstead of ignoring it.
HTTP policy matching
HTTP policy matching treats ASCII letters in URL paths and query parameter names and values case-insensitively. Review rules that rely on case to distinguish allowed and denied requests.
What's new
Security and credentials
- Sandbox restarts check filesystem policy against the original static mount sources and reject inconsistent saved mount metadata. If a mount source resolves elsewhere, restore the original host path or recreate the sandbox. For mismatched saved metadata, recreate the sandbox. Save accessible sandbox files before removing it.
- Kit install hooks expressed as argument lists pass each argument literally, without shell interpretation.
- Claude Code Remote Control keeps environment and session credentials on the host and omits remotely supplied environment variables and MCP configuration. Access requires the
claude.remoteControlsetting. - Diagnostic bundles redact account names, home-directory installation paths, and usernames in archive filenames. Sanitized errors also redact paths containing spaces or Unicode, and human-readable inspection output removes terminal control characters.
sbx rm,sbx prune, andsbx env rmavoid deleting a different sandbox that takes over a name after removal is confirmed.
Kits, agents, and skills
- Enable
claude.chrometo let sandboxed Claude Code use Claude in Chrome with your stored Claude subscription OAuth login. Install the host browser extension, sign in with the same account, and start Claude Code with--chrome. API-key authentication alone is insufficient. Turning the setting off blocks further connections; end existing browser sessions to revoke active access. - Kits granted
ports.publishwithapproval: nonecan request an automatically assigned loopback host port without prompting. These bindings disappear when the sandbox stops. Fixed host ports still require approval. - Unused source-kit build images are eligible for cleanup after seven days. Images referenced by existing sandboxes, saved templates, or in-progress operations are retained. Collected builds may need to be restored or rebuilt on later use.
- Kits launched from Docker Console receive configured proxy-managed API-key variables, including the Anthropic and OpenAI variables used by agents such as Hermes.
- Codex uses the local model selected with
--modelinstead of falling back to OpenAI. Agent launchers wrapped intinihandle positional prompts and subcommands correctly. - With
--clone, kit install hooks can access the cloned project in the workspace. V3 kits receive requested privileged container access, so the kit builder can start Docker inside the sandbox. - Kit inspection and validation warn about unsupported static-file paths. Install progress identifies commands without descriptions, and
sbx kit addexplains when a recorded mount is denied or its host path is missing. - Skill import previews group skills by source directory, show missing agent directories only with
--verbose, and avoid incorrect overwrite warnings.
Sandbox lifecycle and workspaces
sbx runreattaches to the current directory's sandbox when another directory with the same name has taken the default sandbox name. Creation rejects names that differ from an existing local name only in case.- Environment files use the last matching port, MCP server name, or additional workspace target, including across merged files. A replacement replaces the whole entry, so repeat every field you want to retain. Invalid host IP bindings are rejected before planning.
- Sandboxes inherit the host's global Git identity when the workspace root isn't a Git repository. SSH sessions use the login shell of the sandbox user.
sbx runpreserves agent output when stdin is/dev/nullor a closed pipe. Image-pull retries continue into the agent session when a cached image is used.- Sandbox creation and restore retry temporary registry failures while preserving the original mirror and DHI settings. Concurrent commands on macOS are less likely to cause startup failures while reading cache metadata.
- Sandboxes can restart when Docker was manually installed inside them but cannot start, unless their configuration requires Docker inside the sandbox.
- Canceling creation, runs, or kit additions during engine checks stops promptly. Shell environment recovery stops hung subprocesses, and quitting the TUI cancels pending shell startup while preserving terminals already opened.
sbx cpsupports copying a directory to a new path ending in/and reports a missing destination directory before uploading.- Clipboard image paste ignores images larger than 64 MiB, returning an empty clipboard to the agent.
Networking and policy
- Stalled outbound connections close after about 30 seconds by default, allowing clients to reconnect after host network changes such as connecting a VPN. Tune the timeout with
egress.stalledConnectionTimeoutSeconds, or set it to0to disable it. Restart the daemon to apply a changed value to existing sandboxes. - Fixed
EOFerrors during sign-in and other requests through TLS-inspecting proxies that reject handshakes offering ML-DSA certificate signatures, including some Zscaler, Palo Alto, and F5 configurations. - Published loopback ports work with WSL2 mirrored networking, restoring access to the clone-mode Git remote.
- Unpublishing an automatically assigned port keeps it unpublished after a sandbox restart. (CVE-2026-126330)
- Published-port endpoints bracket IPv6 host addresses in list and inspect output, including JSON and YAML.
- Kit pulls work with registries such as Artifactory and self-hosted GitLab whose token service uses a separate host with a private IP address. GitHub release-asset HEAD requests no longer fail with 401 when a GitHub secret is configured.
- DNS answers include CNAME records for aliased hostnames, supporting tools such as Kerberos. HTTPS proxy connections preserve trailing dots in destination names.
- With UDP egress disabled, the first 20 distinct refused external destinations per sandbox network get individual log entries. Further destinations share a
<further blocked attempts>entry and remain blocked. Denied host UDP traffic is labeledhost.docker.internal. - Empty policy rule listings return an empty list in structured output. Declining
sbx policy resetreturns an error, and policy initialization rejects an explicitly empty sandbox scope.
Authentication, MCP, and models
- Docker sign-in retries device-code polling after rate-limit access-denied responses. On Linux, a daemon that started before the keychain was available suggests
sbx daemon restartinstead of repeatedly requesting sign-in. - Unreachable OAuth callbacks time out after 60 seconds. Canceling browser, clipboard, MCP metadata, or image-pull requests also cancels associated helper work and credential reads.
- Environment files can register host MCP commands for multiple sandboxes with independent approval and revocation. Damaged scoped registrations no longer block unrelated MCP gateways.
- Use
--sandboxwithsbx mcp inspectorsbx mcp rm --registration-onlyto select a sandbox-owned registration when names are shared. Recovery preserves other sandboxes' registrations and saved credentials. - MCP, model-provider, and credential errors include corrective commands for unsupported headers, registration conflicts, missing providers, removal failures, and model-server startup timeouts.
- Secret import cancels when confirmation input ends. Conflicting secret-source flags, ambiguous quiet secret listings, and MCP command arguments supplied without
--commandare rejected instead of being silently accepted.
Cloud sandboxes
- Create and manage recurring cloud sandbox tasks with
sbx --cloud schedule. Test tasks with manual runs, inspect run history, and pause or resume recurring runs. - Sandbox moves reject occupied explicit destination names before capturing or transferring the source.
--namesets the exact destination name. Cloud-t...
v0.53.0-rc4
docs(readme): link awesome-docker-sbx (#668)