Skip to content

A remoteUser specified in devcontainer configuration may override containerUser #365

Closed as not planned
@mafredri

Description

@mafredri

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions