Setting Env vars from windows #625
Unanswered
agardnerIT
asked this question in
Q&A
Replies: 1 comment
-
Please unsubscribe me Nicole VargasOn Jul 23, 2025, at 2:07 AM, Adam Gardner ***@***.***> wrote:
Hi all 👋 I have the following devcontainer.json and I set my vars on windows with set FOO=bar and set FOO5=bar5
Then in vscode I "reopen folder in container". I don't want / need to use both containerEnv and remoteEnv - I understand I should probably use containerEnv but the use of both here is really just me trying to debug.
When I printenv I see FOO= and FOO5=
How do I pass the env vars properly? Feels like I'm missing something easy!
{
"name": "some name",
"hostRequirements": {
"cpus": 2
},
"image": "ubuntu:noble",
"containerEnv": {
"FOO": "${localEnv:FOO}"
},
"remoteEnv": {
"FOO5": "${localEnv:FOO5}"
},
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all 👋 I have the following devcontainer.json and I set my vars on windows with
set FOO=bar
andset FOO5=bar5
Then in vscode I "reopen folder in container". I don't want / need to use both
containerEnv
andremoteEnv
- I understand I should probably usecontainerEnv
but the use of both here is really just me trying to debug.When I
printenv
I seeFOO=
andFOO5=
How do I pass the env vars properly? Feels like I'm missing something easy!
Beta Was this translation helpful? Give feedback.
All reactions