Skip to content

docs: document mountless sandbox workspaces - #25902

Merged
dvdksn merged 13 commits into
docker:mainfrom
dvdksn:codex/document-mountless-workspaces
Sep 7, 2026
Merged

docs: document mountless sandbox workspaces#25902
dvdksn merged 13 commits into
docker:mainfrom
dvdksn:codex/document-mountless-workspaces

Conversation

@dvdksn

@dvdksn dvdksn commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Documents the v0.42.0 workspace behavior for Docker Sandboxes: sbx run continues to mount the current directory when no path is provided, while sbx create accepts zero workspace paths and creates a mountless sandbox when they are omitted.

Explains the mountless working directory and persistence model, keeps explicit paths where a project workspace is load-bearing, uses named attachment for existing sandboxes, and adds troubleshooting for sandboxes created without project files.

The generated CLI reference will receive the matching upstream help text when v0.42.0 is vendored.

Closes docker/sbx-releases#466

Generated by Codex

@netlify

netlify Bot commented Aug 20, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 8b3e6ec
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a9e9826e1077c0008ff63be
😎 Deploy Preview https://deploy-preview-25902--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 added the status/review Pull requests that are ready for review label Aug 20, 2026
@dvdksn
dvdksn requested a review from a team August 20, 2026 13:15
@dvdksn dvdksn added this to the sbx/v0.40.0 milestone Aug 20, 2026
@dvdksn
dvdksn requested a review from docker-agent August 20, 2026 13:52
@dvdksn
dvdksn marked this pull request as ready for review August 27, 2026 09:38
Comment thread content/manuals/ai/sandboxes/security/_index.md Outdated
dvdksn added a commit that referenced this pull request Sep 7, 2026
## Summary

Document the v0.42 sandbox-kit positional for `sbx run` and `sbx
create`, reserve `--kit` for mixins, and add the kit argument
declaration, scoping, precedence, and validation rules.

Correct the `extends:` inheritance details and `sbx kit push` registry
authentication behavior. This touches separate sections of files also
changed by #25833, #25895, and #25902, but has no merge dependency on
those PRs.

@netlify /ai/sandboxes/customize/kits/

Preview:
[Kits](https://deploy-preview-25951--docsdocker.netlify.app/ai/sandboxes/customize/kits/)
· [Kit spec
reference](https://deploy-preview-25951--docsdocker.netlify.app/ai/sandboxes/customize/kit-reference/)

Generated by Codex

---------

Co-authored-by: Codex <noreply@openai.com>
dvdksn and others added 13 commits September 7, 2026 10:54
Starting with sbx 0.40.0, omitting the workspace path creates a sandbox without a host workspace bind mount instead of mounting the current directory.

Explain mountless, direct, and clone workspace behavior, and update project-oriented examples to pass an explicit path. This addresses docker/sbx-releases#466.
Agent-argument examples used workspace-based creation syntax even though they continue an existing sandbox session.

Use sbx run --name for continuation examples and retain explicit workspace paths only where the command creates a sandbox.
Users upgrading to sbx 0.40.0 may create a mountless sandbox through the previous bare run syntax and expect to see their host project.

Explain the mountless default, show how to mount the current directory, and describe safe recreation of an existing named sandbox.
Document that sbx run retains its implicit current-directory mount, while sbx create without workspace paths creates a mountless sandbox. Restore pathless run examples where the mount is not load-bearing.
Link agent pages directly to the mountless workspace explanation and use sbx run for direct-mounted troubleshooting examples.
Rely on the sbx run current-directory default in direct-mode examples while retaining explicit paths for clone mode.
Explain that built-in agent images declare /home/agent/workspace as WORKDIR and that the daemon uses the same path as a fallback when image config has no usable absolute WORKDIR.
Kit install commands do not choose /home/agent/workspace themselves; they inherit the template image working directory. Clarify that the Docker-provided built-in agent images configure that path.
@dvdksn
dvdksn force-pushed the codex/document-mountless-workspaces branch from f188a07 to 8b3e6ec Compare September 7, 2026 10:55
@dvdksn
dvdksn merged commit 828626a into docker:main Sep 7, 2026
15 checks passed
@dvdksn
dvdksn deleted the codex/document-mountless-workspaces branch September 7, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ai area/guides status/review Pull requests that are ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an explanation for /home/agent/workspace in the documentation.

3 participants