-
Notifications
You must be signed in to change notification settings - Fork 394
Description
When attaching to a running container, vscode tries to forward it's own sockets (eg for ssh, x11 etc). But if the container already forwards these sockets and has it's own config this create a conflict / incorrect configuration.
I was confused why apps suddenly stopped being displayed in my container, turns out that vscode overwrites my DISPLAY=:0 and sets it to DISPLAY=:7, creates a separate sockets, and results in a window not appearing on the screen and the application hanging :-/
Could there be an environment variable or something that can be set in the running container to indicate to vscode that I don't want it to automatically forward ssh/x11/etc as I have already handled the forwarding ? As it is incredibly annoying to have created a working development environment to then have it broken by extension updates that decide to overwrite existing env variables (and hard to debug).