Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
Hello, I'm using devcontainers and cloning a repo into a docker/dev volume. I set up my devcontainer.json to pass a (possibly empty) environment variable from the local environment to the container via remoteEnv. I set a default value, e.g.
However, in my container, that environment variable ends up being empty (i.e. the default value is not used). If I run the same exact devcontainer but associate it with my local filesystem (i.e. don't use a docker volume), it works as expected.
Specs:
VSCode Version: 1.82.1 (Universal)
Local OS Version: macOS Ventura 13.4.1.(c)
Remote OS Version: Ubuntu 20.04.4 LTS
Remote Extension/Connection Type: Containers
Steps to Reproduce:
Create devcontainer by cloning a repo into a container volume
Setup remoteEnv to pass in a local environment variable with a default value
Hello, I'm using devcontainers and cloning a repo into a docker/dev volume. I set up my devcontainer.json to pass a (possibly empty) environment variable from the local environment to the container via
remoteEnv
. I set a default value, e.g.However, in my container, that environment variable ends up being empty (i.e. the default value is not used). If I run the same exact devcontainer but associate it with my local filesystem (i.e. don't use a docker volume), it works as expected.
Specs:
Steps to Reproduce:
Attaching logs in a reply...