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

Pass env variables when attach remote containers #10104

Open
Victor-G8 opened this issue Jul 29, 2024 · 2 comments
Open

Pass env variables when attach remote containers #10104

Victor-G8 opened this issue Jul 29, 2024 · 2 comments
Assignees
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality
Milestone

Comments

@Victor-G8
Copy link

Victor-G8 commented Jul 29, 2024

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 :)

@vs-code-engineering vs-code-engineering bot added the containers Issue in vscode-remote containers label Jul 29, 2024
@chrmarti chrmarti added the feature-request Request for new features or functionality label Jul 30, 2024
@vscodenpa vscodenpa added this to the Backlog Candidates milestone Jul 30, 2024
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Copy link

🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants