Closed
Description
Currently, which shell is used to execute commands
depends on the image
property:
- if
image
is not specified, thedstackai/base
image is used, and the shell is/bin/bash
- otherwise, the shell is
/bin/sh
dstack/src/dstack/_internal/server/services/jobs/configurators/base.py
Lines 138 to 143 in 99a88d3
This should be at least documented.
Plan
- (required) document the current behavior
- (optional but nice to have) add a new optional property
shell
keeping the current logic for the default value (bash for defaultdstackai/base
images, sh for other images) - (optional) make
dstackai/base
images work with sh, make sh the defaultshell
for all images