Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support --env-file flag for docker compose usage #483

Open
adamlewisgucci opened this issue Mar 31, 2023 · 2 comments
Open

Support --env-file flag for docker compose usage #483

adamlewisgucci opened this issue Mar 31, 2023 · 2 comments

Comments

@adamlewisgucci
Copy link

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

@samruddhikhandale
Copy link
Member

Similar to microsoft/vscode-remote-release#4885

@samruddhikhandale samruddhikhandale transferred this issue from devcontainers/features Apr 5, 2023
@nsbradford
Copy link

+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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants