Skip to content

docs(sandboxes): post-v0.32.0 doc updates#25329

Draft
dvdksn wants to merge 8 commits into
docker:mainfrom
dvdksn:worktree-sandboxes-docs-post-v0.32
Draft

docs(sandboxes): post-v0.32.0 doc updates#25329
dvdksn wants to merge 8 commits into
docker:mainfrom
dvdksn:worktree-sandboxes-docs-post-v0.32

Conversation

@dvdksn

@dvdksn dvdksn commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Documentation updates based on changes merged into docker/sandboxes after the v0.32.0 release cut (through v0.33.0-rc1):

  • Network isolation (security/isolation.md): clarifies that DNS resolution is subject to the same network policy as outbound connections — domains that policy denies are refused at the resolver, not just blocked at the connection level. Loopback names such as localhost are always resolved regardless of policy.
  • Audit log schema (governance/audit.md): documents the new agent field on audit records, which identifies the AI agent driving the sandbox.
  • Custom secrets (security/credentials.md): documents that --host on sbx secret set-custom is now repeatable and accepts wildcard patterns (* for a single label, ** for any number), so one secret can cover multiple domains.
  • --name as primary sandbox identity (usage.md, workflows.md): documents that --name identifies a sandbox independently of the working directory — re-attach from anywhere, run multiple named sandboxes per workspace, and re-run a create command to reconnect. Updates existing examples that used the positional sandbox-name form to use --name for consistency.
  • virtiofs cache default (troubleshooting.md): corrects the slow-filesystem guidance — virtiofs caching is now enabled by default on macOS and Linux (Windows remains opt-in), and DOCKER_SANDBOXES_ENABLE_VIRTIOFS_CACHE=0 is the kill switch.
  • Post--- argument behavior (agents/*.md): corrects the "Default startup command" guidance across the agent pages — arguments after -- keep the agent's default flags when the first argument is itself a flag, and replace them only when it's a bare word (subcommand or prompt).
  • Image paste (faq.md): documents the opt-in clipboard.imagePaste setting for pasting host images into agents with Ctrl+V, including the host-clipboard isolation tradeoff.

Generated by Claude Code

@docker-agent docker-agent left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

The three documentation updates are accurate, well-scoped, and follow Docker's style guide. No issues found.

@netlify

netlify Bot commented Jun 11, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 613f8fa
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a2fed1d4fbde000089b862f
😎 Deploy Preview https://deploy-preview-25329--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dvdksn dvdksn force-pushed the worktree-sandboxes-docs-post-v0.32 branch from 3c6cc0a to 0abc693 Compare June 15, 2026 08:45
dvdksn and others added 3 commits June 15, 2026 12:48
…olation

Sandbox DNS lookups now go through the same policy engine as TCP
connections — a denied domain is refused at the resolver level, not just
the connection level. Updated the network isolation description to reflect
this guarantee rather than describing DNS as merely proxied.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Audit records now include an `agent` field identifying which AI agent
drove the sandbox (claude, codex, etc.), so multi-agent deployments can
attribute policy decisions per agent. Added to the example record and the
field reference table.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sbx secret set-custom --host is now repeatable, so one secret entry can
cover multiple domains. Added a second example showing the multi-host
form and updated the prose to reflect that the proxy matches any of the
configured hosts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dvdksn dvdksn force-pushed the worktree-sandboxes-docs-post-v0.32 branch 2 times, most recently from 233c7b3 to f0f187e Compare June 15, 2026 10:52
--name now identifies a sandbox independently of the working directory.
Expanded the reconnecting and naming section to cover: re-attaching by
name from any directory, re-running a create command to reconnect without
error, and using distinct names to run multiple sandboxes against the
same workspace.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dvdksn dvdksn force-pushed the worktree-sandboxes-docs-post-v0.32 branch from f0f187e to dc1affd Compare June 15, 2026 11:11
dvdksn and others added 4 commits June 15, 2026 13:50
sbx secret set-custom --host accepts wildcards (* for a single label, **
for any number), using the same syntax as network rules. Added a note and
examples alongside the repeatable --host guidance.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…d Linux

Direct-mode virtiofs caching is now on by default on macOS and Linux;
Windows remains opt-in. Corrected the troubleshooting guidance, which
still described caching as disabled by default, and documented
DOCKER_SANDBOXES_ENABLE_VIRTIOFS_CACHE=0 as the kill switch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Arguments after `--` no longer wholesale-replace an agent's default
entrypoint flags. The default flags are now kept when the first user
argument is itself a flag (begins with `-`), and replaced only when the
first argument is a bare word (a subcommand or prompt). Updated the
"Default startup command" section on each affected agent page and fixed
examples that re-included flags now retained automatically.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Ctrl+V image/screenshot paste into sandboxed agents (Claude Code, Codex)
is opt-in via the clipboard.imagePaste setting. Added an FAQ entry
covering how to enable it and the isolation tradeoff: enabling it lets a
sandbox process read the host clipboard through the proxy, scoped to
image data only and never cached or logged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dvdksn dvdksn force-pushed the worktree-sandboxes-docs-post-v0.32 branch from 3047687 to 613f8fa Compare June 15, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants