Add note about root privileges in sandbox docs (#23314)

This commit is contained in:
Chris Williams
2026-03-25 11:03:50 -07:00
committed by GitHub
parent 1b052df52f
commit f618da15d6
+5 -1
View File
@@ -2352,9 +2352,13 @@ can be based on the base sandbox image:
```dockerfile ```dockerfile
FROM gemini-cli-sandbox FROM gemini-cli-sandbox
# Add your custom dependencies or configurations here # Add your custom dependencies or configurations here.
# Note: The base image runs as the non-root 'node' user.
# You must switch to 'root' to install system packages.
# For example: # For example:
# USER root
# RUN apt-get update && apt-get install -y some-package # RUN apt-get update && apt-get install -y some-package
# USER node
# COPY ./my-config /app/my-config # COPY ./my-config /app/my-config
``` ```