Skip to content

Bug: _REMOTE_USER_HOME is empty when executing a Feature where common-utils configures the user #331

Open
@samruddhikhandale

Description

@samruddhikhandale

Reported in devcontainers/features#336 (comment)

// devcontainer.json
{
  "image": "mcr.microsoft.com/dotnet/sdk:6.0-jammy",
  "features": {
    "ghcr.io/devcontainers/features/azure-cli:1": {
      "version": "latest",
      "installBicep": "true"
    },
    "ghcr.io/devcontainers/features/common-utils:2": {
      "installZsh": true,
      "installOhMyZsh": true,
      "upgradePackages": true,
      "username": "vscode",
      "userUid": "1000",
      "userGid": "1000"
    }
  },
  "overrideFeatureInstallOrder": [
    "ghcr.io/devcontainers/features/common-utils"
  ],
  "remoteUser": "vscode"
}

While executing the azure-cli Feature, it logs the following values (added loggings in install.sh)👇

image

Expected : The value of _REMOTE_USER_HOME should have been /home/vscode

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions