devcontainers / devcontainers/cli

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

Open
#641 3 comments 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
TypeScript
Stars
3k
Forks
457
Avg merge
13h 17m
Merged PRs (30d)
6

Description

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

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.