cli icon indicating copy to clipboard operation
cli copied to clipboard

Support --env-file flag for docker compose usage

Open adamlewisgucci opened this issue 2 years ago • 3 comments

Currently the devcontainer.json spec does not allow for me to specify an .env file for usage in the CLI: https://docs.docker.com/compose/environment-variables/set-environment-variables/#substitute-with---env-file

This would be really useful, as I currently cannot rely on a root .env file as suggested by the docs, due to collisions with other devs/IDEs and a desire to not pollute each other's ways of working, yet would still like to make use of env var substitution features inside of common .yml files whenever I am running them through the devcontainer stack

adamlewisgucci avatar Mar 31 '23 12:03 adamlewisgucci

Similar to https://github.com/microsoft/vscode-remote-release/issues/4885

samruddhikhandale avatar Mar 31 '23 22:03 samruddhikhandale

+1 would be very helpful - the docs mention it's supported by runArgs, but doesn't seem to be all connected. There's also --secret-args, but that doesn't seem to work?

https://code.visualstudio.com/remote/advancedcontainers/environment-variables

nsbradford avatar Jan 11 '24 04:01 nsbradford