Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: specify ports mapping via CLI #569

Closed
Egor-S opened this issue Jul 18, 2023 · 0 comments · Fixed by #573
Closed

[Feature]: specify ports mapping via CLI #569

Egor-S opened this issue Jul 18, 2023 · 0 comments · Fixed by #573
Assignees
Labels

Comments

@Egor-S
Copy link
Contributor

Egor-S commented Jul 18, 2023

Problem

Now you can map ports only in .dstack.yaml, that's inconvenient. Mapping syntax conflicts with docker's syntax.

Solution

  1. Add --ports option to dstack run
  2. Put the container's port second

Benefit

Easy adjustments and consistent syntax

Alternatives

Keep editing the configuration file

Would you like to help contributing this feature?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant