The Wayback Machine - https://web.archive.org/web/20260101162958/https://github.com/docker/cli/pull/3892
Skip to content

Conversation

@thaJeztah
Copy link
Member

See individual commits for details

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

We should consider showing all mappings for a given port if no specific
proto was specified.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- use strings.Cut
- don't use nat.NewPort as we don't accept port ranges
- use an early return if there's no results

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Make sure that the container has multiple port-mappings to illustrate
that only the given port is matched.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah merged commit d7e872e into docker:master Dec 1, 2022
@thaJeztah thaJeztah deleted the port_sort branch December 1, 2022 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker port CONTAINER should return stable output

2 participants