Skip to content

Request: add variable for remoteUser #690

@rdong8

Description

@rdong8

I'd like to be able to access the remoteUser field as a devcontainer variable in the devcontainer.json file. For example, when defining cache volumes, I currently have to hardcode my remoteUser's name into the target path:

  "mounts": [
    {
      "source": "brew",
      "target": "/home/dev/.cache/Homebrew",
      "type": "volume"
    },
    {
      "source": "conan",
      "target": "/home/dev/.conan2",
      "type": "volume"
    },
    {
      "source": "uv",
      "target": "/home/dev/.cache/uv",
      "type": "volume"
    }
  ],

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