dstackai / dstack

dstack is a lightweight, open-source alternative to Kubernetes & Slurm, simplifying AI container orchestration with multi-cloud & on-prem support. It natively supports NVIDIA, AMD, & TPU.
https://dstack.ai/docs
Mozilla Public License 2.0
1.6k stars 157 forks source link

Drop all custom docker image requirements #1535

Open jvstme opened 3 months ago

jvstme commented 3 months ago

Current

dstack allows running custom Docker images by specifying them in the image property. However, not all images can be used. These are some of the image requirements:

Proposed

Drop all image requirements and support all valid Docker images, including images built FROM scratch.

Implementation notes

The main source of requirements seems to be the installation and configuration of the OpenSSH server. Possible solutions to dropping the requirements related to the OpenSSH server include:

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

jvstme commented 1 month ago

Some examples of images that don't work and their respective errors:

un-def commented 1 month ago

Action Plan (WIP)

This plan covers all requirements mentioned in the OP except “The image should have /bin/sh”. Completing the plan would allow to (at least):

Keep the default image user

Download the runner

Bring our own SSH server

Statically linked OpenSSH or crypto/ssh-based Golang implementation embedded into the runner — yet to be decided.