Skip to content

docs: fix persistent environment file owner - #25747

Open
dvdksn wants to merge 1 commit into
docker:mainfrom
dvdksn:codex/fix-313-persistent-file-owner
Open

docs: fix persistent environment file owner#25747
dvdksn wants to merge 1 commit into
docker:mainfrom
dvdksn:codex/fix-313-persistent-file-owner

Conversation

@dvdksn

@dvdksn dvdksn commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Correct the nvm kit example to update /etc/sandbox-persistent.sh as the agent user, matching the file ownership in sandbox images.

@netlify /ai/sandboxes/customize/kit-examples/

Preview the kit examples

Closes docker/sbx-releases#313

Generated by Codex

The nvm example incorrectly said only root could update the sandbox persistent environment file.
Run both install commands as the agent user and document the file's actual ownership.

Co-Authored-By: Claude <noreply@anthropic.com>
@netlify

netlify Bot commented Aug 10, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 827e926
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a7992b1d45e3b00096bbd59
😎 Deploy Preview https://deploy-preview-25747--docsdocker.netlify.app/ai/sandboxes/customize/kit-examples/
📱 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.

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

The change correctly adds user: "1000" to the file-append step and updates the explanatory prose to match the actual behavior of Docker's sandbox images (where /etc/sandbox-persistent.sh is owned by the agent user). No issues found in the changed lines.

@dvdksn
dvdksn requested review from a team and mdelapenya August 10, 2026 10:26
@dvdksn
dvdksn marked this pull request as ready for review August 10, 2026 10:26

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

The change is a focused, accurate correction: user: "1000" is added to the append step so both install steps run as the agent user, and the accompanying prose is updated to reflect the corrected file ownership. The YAML and prose are consistent.

No high or medium severity issues found. Two minor style observations (not blocking):

  • Line 150: "can update" slightly understates certainty — "updates" would be more direct per the style guide.
  • Line 152–153: the em-dash spans a line break without a space on both sides; the style guide specifies spaces on either side of an em-dash.

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

The fix correctly adds user: "1000" to the second install step (the cat >> /etc/sandbox-persistent.sh command) so it runs as the agent user who owns the file. The accompanying prose — "Both install steps run as user: "1000"" — is accurate since the first step already carried that field. No style violations, markdown issues, or accuracy problems were found in the added lines.

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

The change correctly updates the nvm kit example to run both install steps as user: "1000", matching the actual file ownership of /etc/sandbox-persistent.sh in sandbox images. The explanatory prose accurately describes the behavior. No style violations, markdown issues, or content inaccuracies were found in the changed lines.

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.

sandbox-persistent docs wrong about ownership

3 participants