Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Empty variables in the devcontainer definitions #1750

Open
zaadeh opened this issue Jun 21, 2023 · 0 comments
Open

Empty variables in the devcontainer definitions #1750

zaadeh opened this issue Jun 21, 2023 · 0 comments

Comments

@zaadeh
Copy link

zaadeh commented Jun 21, 2023

  • VS Code Version: 1.79.1
  • Local OS Version: Windows 10, WSL2
  • Local chip architecture: x86
  • Reproduces in: Remote - Containers

Steps to Reproduce:

  1. I need to mount local ssh keys from ~/.ssh into the devcontainer using this mount option:
    "mounts": [
    "source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind"
    ]
    I need this to be able to push and pull changes from Github.
  2. Both of the variables ${localEnv:HOME} and ${localEnv:USERPROFILE} seem to be empty when devcontainer is activated and I can see the devcontainer output that docker command is being passed wrong mount options as a result of this and therefore the devcontainer activation fails.
  3. This is true when running vscode directly from Windows or running it from WSL.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant