Skip to content

Commit

Permalink
Do not require sshd in task configuration for custom docker images (#609
Browse files Browse the repository at this point in the history
)

* Do not require sshd in task configuration for custom docker images

* Setup sshd for dstack images
  • Loading branch information
Egor-S authored Aug 1, 2023
1 parent 4a4de97 commit 5a02825
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cli/dstack/_internal/configurators/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ def build_commands(self) -> List[str]:

def setup(self) -> List[str]:
commands = []
if self.conf.image:
commands += self.sshd.get_required_commands()
commands += self.sshd.get_setup_commands()
if self.conf.image is None:
commands += self.sshd.get_setup_commands()
commands += self.conf.setup
return commands

Expand Down

0 comments on commit 5a02825

Please sign in to comment.