X Tutup
Skip to content

container port: sort ports before printing#3892

Merged
thaJeztah merged 4 commits intodocker:masterfrom
thaJeztah:port_sort
Dec 1, 2022
Merged

container port: sort ports before printing#3892
thaJeztah merged 4 commits intodocker:masterfrom
thaJeztah:port_sort

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

X Tutup