devcontainers / devcontainers/spec

Request: add variable for remoteUser

Open
#690 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
5.7k
Forks
496
PR merge metrics
No merged PRs in 30d

Description

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:

```json
"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"
}
],
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.