devcontainers / devcontainers/cli

Variable substitution for environment variables does not work when using the command line argument --remote-env

Abierto
#641 3 comentarios 0 reacciones 0 asignados Ver en GitHub
feature-request
Lenguaje dominante
TypeScript
Estrellas
3k
Forks
457
Merge medio
13 h 17 min
PR fusionados (30 d)
6

Descripción

I tried to extend the PATH environment variable used inside the container from the command line like this:

devcontainer exec --remote-env PATH='${containerEnv:PATH}':/my-additional-path --workspace-folder . bash

However, it seems the variable substitution does not work here. When I add the same to the devcontainer.json, then the variable substitution works as expected.

Am I doing something wrong, or is it just not implemented? If not, would it be possible to add this feature?

Thanks,
Thomas

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.