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.57k stars 153 forks source link

[Feature]: Generate Docker registry password using AWS creds #1868

Open peterschmidt85 opened 1 month ago

peterschmidt85 commented 1 month ago

Problem

In order to use private Docker images hosted with AWS ECR, one has to generate a temporarily password using aws ecr get-login-password and then hardcode them in the YAML file.

Solution

Allow dstack generate a temporarily password automatically on behalf of the user:

type: dev-environment
name: vscode    

image: 540292141660.dkr.ecr.eu-west-1.amazonaws.com/hello-world:latest
registry_auth:
  type: aws
  creds:
     type: default
ide: vscode

[!NOTE] In theory, a similar approach could be used with other clouds: GCP, Azure, etc.

Workaround

No response

Would you like to help us implement this feature by sending a PR?

No

github-actions[bot] commented 16 hours ago

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