Docker SBX v0.31.0: Clone Mode Replaces Branch Flag
Docker SBX v0.31.0 removes the --branch flag in favor of --clone mode, which runs in-container read-only clones instead of host-side worktrees. Breaking change requires immediate workflow updates.
TL;DR
--branchflag removed; use--clonefor in-container read-only clones instead- Sandbox clones now exposed as
sandbox-<name>Git remotes on your host - Breaking change: existing workflows using
--branchwill fail immediately
New
- Clone mode (
--clone) — replaces branch worktrees with in-container read-only clones; source repo mounted read-only, agent writes only to sandbox filesystem, refs mirrored torefs/sandboxes/<name>/*on host - Auto-start daemon —
sbx createnow starts the daemon automatically if not running - virtiofs caching opt-in — enable at create time with
DOCKER_SANDBOXES_ENABLE_VIRTIOFS_CACHE=1(persisted in spec) - Policy and rule names in CLI — list output and TUI details now show policy/rule identifiers with added filtering
- Public CA endpoints in balanced proxy — CRL/OCSP/AIA endpoints now allowed (applies to new installs or after
sbx policy reset) - Experimental kit marking — kits now flagged as experimental with verbose error reporting on apply failures
Fixed
- Template listing now sorted by repository then tag
ExecResizeretried to keep agent TUI in syncTERM=xterm-256colorset when exec'ing with-t- State directory symlink moved from
/tmpto~/.sbx/run/ storageRootsGoneno longer locks storagekit singleton- Cursor session bootstrap now proxy-local
- IPv6 loopback added to
NO_PROXYwith bracketed notation[::1] - Proxy CA
NotBeforebackdated to match goproxy leaf cert window
Breaking Changes
--branchflag removed entirely — replace with--clonein all scripts and workflows. Runningsbx run claude --branch foonow errors immediatelysbx logoutnow stops the daemon and running sandboxes (previously only logged out)
Update with: docker sbx update or download from GitHub releases.
Source: Docker