Pass env variables when attach remote containers #10104
Labels
containers
Issue in vscode-remote containers
feature-request
Request for new features or functionality
Milestone
Hello,
It could be very nice to pass env variables when we attach a remote container with the Dev Containers extension.
The only way i found from now is to modify the directive
"docker.commands.runInteractive"
in the settings.json and pass an env variable inside:"docker.commands.runInteractive": "${containerCommand} run --rm -it -e TOTO=tata ${exposedPorts} ${tag}",
But this way work only when i "Attach Shell" not when i "Attach Visual Studio Code".
Furthermore the
"docker.environment"
do not work with a remote container.Thanks :)
The text was updated successfully, but these errors were encountered: