Skip to content

[Request]: Allow port ranges when publishing ports from a container to a host #626

@mmaetzler

Description

@mmaetzler

Feature or enhancement request details

When running a container, the current version 0.4 has a --publish command that allows publishing one port at a time, e.g.:

-p 0.0.0.0:50001:50001/tcp -p 0.0.0.0:50002:50002/tcp

The request is to support port ranges to get closer to CLI compatibility to docker, podman, etc:
-p 0.0.0.0:50001-50002/tcp

From what I can tell, the change would have to happen somewhere around this section of the code:
public static func publishPort(_ portText: String) throws -> PublishPort {

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions