-
Notifications
You must be signed in to change notification settings - Fork 208
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Steps to reproduce
Apply the configuration:
# dev-environment.dstack.yml
type: dev-environment
name: dev-environment
ide: vscode
env:
- RUN_VAR=1-
Log in and run command:
$ ssh dev-environment root@a6e6bda7be8e:/# printenv SHELL CUDA_VERSION DSTACK_RUN_NAME RUN_VAR -
Run the same command via
ssh:$ ssh dev-environment printenv SHELL CUDA_VERSION DSTACK_RUN_NAME RUN_VAR
Variable sources:
SHELL— set bysshdCUDA_VERSION— from the imageDSTACK_RUN_NAME— injected bydstackRUN_VAR— declared in the run configuration
Actual behaviour
-
/bin/bash 12.8.1 dev-environment 1 -
/bin/bash
Expected behaviour
The output in the second case should be the same.
dstack version
a49d34c43913f0962ed8b5b7da6f28dea621186f
Server logs
Additional information
dstack exports vars in /dstack/profile, which is sourced in /etc/profile, which, in turn, only sourced by login shells, while ssh destination command [argument ...] executes command in a non-login shell.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working