devcontainers / devcontainers/cli

Passing environment variables in features

Abierto
#308 1 comentario 0 reacciones 1 asignado Reclamado por @chrmarti Ver en GitHub
bug
Lenguaje dominante
TypeScript
Estrellas
3k
Forks
457
Merge medio
13 h 17 min
PR fusionados (30 d)
6

Descripción

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!

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.