Skip to content

Feature request: add names to exposed ports #21322

@davidsonr

Description

@davidsonr

On some Dockerfiles you can have multiple exposed ports. For example the selenium-debug one has a port exposed for VNC, RemoteWebDriver. Others expose more...
It would be good if when we are exposing ports we assign names to them.

Dockerfile
EXPOSE 5900 VNC
EXPOSE 4444 REMOTE_WEBDRIVER
EXPOSE 5555 SOME_OTHER_PORT

command line
docker port container-name
VNC: 5900/tcp -> 0.0.0.0:32771
REMOTE_WEBDRIVER: 4444/tcp -> 0.0.0.0:32773
SOME_OTHER_PORT: 5555/tcp -> 0.0.0.0:32772

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/builderBuildkind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shiny

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions