You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ContainerCodeExecutor docs say non-root, but the container runs as the image's default user (root for python:3.11-slim) #7712
The code executor guide says:
"ContainerCodeExecutor starts a Docker container as a non-root user, with the network off and Linux capabilities dropped."
#6074 added the network and capability hardening; the user part seems to be the piece that didn't land. Maybe it's just the docs, but since this is described as the step that "puts a real boundary" between model code and the host, passing e.g. user="65534:65534" (or making it configurable) seems like the better fix than editing the sentence.
Found while testing a docs-vs-code checker I'm building (Elliot), then verified by hand.
May I send a small guide correction so it no longer promises a non-root user? The container and exec calls leave user unset, so the guide should describe the image's configured user. I would leave runtime user selection separate, since forcing a UID could affect custom images.
I opened #7713 before your reply came through, so both PRs now cover the same paragraph. Sorry for the crossed wires. Would you prefer to continue with #7714? I want to avoid asking the team to review the same correction twice.
No worries at all, thanks for flagging it! Yes, let’s continue with #7714
since it already has the CLA and a reviewer assigned. Would you mind
closing #7713? If you want, I’m happy to add you as co-author on the commit.
Activity
Samecho commentedon Oct 24, 2026
May I send a small guide correction so it no longer promises a non-root user? The container and exec calls leave
userunset, so the guide should describe the image's configured user. I would leave runtime user selection separate, since forcing a UID could affect custom images.EmanueleCell4 commentedon Oct 24, 2026
docs: ContainerCodeExecutor runs as the image's user, not non-root
docs: ContainerCodeExecutor runs as the image's user, not non-root
Samecho commentedon Oct 25, 2026
I opened #7713 before your reply came through, so both PRs now cover the same paragraph. Sorry for the crossed wires. Would you prefer to continue with #7714? I want to avoid asking the team to review the same correction twice.
EmanueleCell4 commentedon Oct 25, 2026