Skip to content

Make PRIVATE_PORT optional for docker compose port #11859

Open
@crazybolillo

Description

Description

"Normal" docker already does this. See the usage for docker port:

$ docker port --help

Usage: docker port CONTAINER [PRIVATE_PORT[/PROTO]]

However docker compose differs:

$ docker compose port --help

Usage:  docker compose port [OPTIONS] SERVICE PRIVATE_PORT

I can look into making a PR if you agree this should be optional.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions