Gemini CLI PR fixes rootless Podman sandbox by mapping host UID/GID

bl4987637-code · ghdev · 2026-09-25

A P1 PR in google-gemini/gemini-cli fixes sandbox startup under rootless Podman on Linux. Previously, rootless sessions failed because the sandbox tried to create or drop to a mapped user missing from /etc/passwd. The fix detects rootless Podman, defensively checks for useradd/groupadd, creates a container user matching the host UID/GID, and runs Gemini as that user instead of root — preserving file ownership on bind-mounted workspaces. Validation: GEMINISANDBOX=podman npm start, then check id and file ownership inside the sandbox.

Original post →

More from coding & agent

coding & agent channel →