devcontainers / devcontainers/cli

Passing environment variables in features

Open
#308 1 comment 0 reactions 1 assignee Claimed by @chrmarti View on GitHub
bug
Dominant language
TypeScript
Stars
3k
Forks
457
Avg merge
13h 17m
Merged PRs (30d)
6

Description

Hi, I was trying to set up a feature that would configure the container's environment variables and mounts to allow applications in the container to use WSLg. I've set this up fine in a devcontainer.json by using ${localEnv:?}, but it seems features can only use environment variables from the container.

Would it be possible to pass host environment variables to a container through a feature? Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.