Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A remoteUser specified in devcontainer configuration may override containerUser #365

Closed
mafredri opened this issue Sep 27, 2024 · 1 comment

Comments

@mafredri
Copy link
Member

See https://containers.dev/implementors/json_reference

Overrides the user that devcontainer.json supporting services tools / runs as in the container (along with sub-processes like terminals, tasks, or debugging). Does not change the user the container as a whole runs as which can be set using containerUser. Defaults to the user the container as a whole is running as (often root).

(Emphasis mine.)

In envbuilders case the disctinction may be a bit blurry, but since envbuilder does execve(2) and replaces pid 1 (usually), I take that to be "the user the container as a whole runs as".


          Review: Didn't want to change this logic now, but documenting it for posterity.

Originally posted by @mafredri in #359 (comment)

@mafredri
Copy link
Member Author

Never mind, misread an assignment, closing this as invalid.

@mafredri mafredri closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant