Skip to content

Commit

Permalink
I wonder that ${env:HOME} is for UNIX environment and ${env:USERPROFI…
Browse files Browse the repository at this point in the history
…LE}.

But some PowerShell scripts(example posh-git) use env:HOME in order to imitate UNIX environment, "Open Folder in container" ends error.

This block is unnecessary because it is written for .azure, then I removed to fix this error.
  • Loading branch information
azusa committed Dec 21, 2020
1 parent b63de10 commit 2fe4884
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
// Mount docker socket for docker builds
"-v", "/var/run/docker.sock:/var/run/docker.sock",
// Use host network
"--network=host",
// Mount azure, git and docker config
"-v", "${env:HOME}${env:USERPROFILE}/.azure:/root/.azure"
"--network=host"
],

// Set *default* container specific settings.json values on container create.
Expand Down Expand Up @@ -59,4 +57,4 @@

// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode"
}
}

0 comments on commit 2fe4884

Please sign in to comment.