Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers/docker: support mapping multiple host ports to the same container port #9951

Merged
merged 2 commits into from
Feb 3, 2021

Conversation

nickethier
Copy link
Member

The docker driver native port mapping logic would overwrite ports with the same container port. This wouldn't allow multiple ports to be mapped to the came container port.

This PR fixes this issue by correctly appending to the published port map instead of overwriting.

fixes #8284

Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@nickethier nickethier merged commit 434f4b4 into master Feb 3, 2021
@nickethier nickethier deleted the b-8284 branch February 3, 2021 20:04
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

multiple ports in docker driver port fowarding overwrites previous ones
2 participants