Default config for attaching to containers #3585
Labels
containers
Issue in vscode-remote containers
feature-request
Request for new features or functionality
plan-review
PM-highlighted item determined to be P1 or P2
Milestone
The SSH remote extension runs the extension host using a login shell, which sources in .profile and .kshrc. This sets up the runtime environment correctly for extensions that depend on environment variables.
However the container/docker extension simply uses 'docker exec' when attaching to existing containers, and this does not run a login shell. Consequently any extensions started do not have a correct environment and commonly fail.
e.g vscode appears to run the following to run the host:
I would like it to run the following instead:
Note the addition of '/usr/bin/ksh -lc'. This would ideally use the 'automationShell' setting when invoking node.
The text was updated successfully, but these errors were encountered: