Support for using unix pipes in devcontainer runArgs, in particular for --env-file #9446
Labels
containers
Issue in vscode-remote containers
feature-request
Request for new features or functionality
Milestone
Docker already supports using unix pipes to specify an environment variable file as follows:
In my
devcontainer.json
I've tried doing the following:But I get the following error when the devcontainer starts:
Specifically, I want to do this:
This allows my devcontainer environment variables to be stored in 1Password and injected by the 1Password CLI.
My current workaround is the far less satisfactory:
Having to store secrets temporarily on disk is not great, and the
postStartCommand
isn't always run as I expected, leaving the secrets file sitting on disk after the devcontainer starts. Support for using unix pipes inrunArgs
would eliminate the need for the temp file and simplify the configuration.The text was updated successfully, but these errors were encountered: