Skip to content

docs: document mountless sandbox workspaces - #25902

Draft
dvdksn wants to merge 8 commits into
docker:mainfrom
dvdksn:codex/document-mountless-workspaces
Draft

docs: document mountless sandbox workspaces#25902
dvdksn wants to merge 8 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.40.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.40.0 is vendored.

Closes docker/sbx-releases#466

Generated by Codex

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.
@netlify

netlify Bot commented Aug 20, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 9ae292c
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a886cc6c6f9b50008709385
😎 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
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.
@dvdksn
dvdksn requested a review from docker-agent August 20, 2026 13:52
dvdksn added 5 commits August 21, 2026 14:12
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.
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.

1 participant