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

Support multiple port bindings for same internal port #624

Merged
merged 2 commits into from
Nov 7, 2014

Conversation

drewkett
Copy link

@drewkett drewkett commented Nov 7, 2014

If multiple port mappings use the same internal port of a service, only the last one is currently used. This fixes it by mapping the internal ports to lists.

Signed-off-by: Andrew Burkett burkett.andrew@gmail.com

Signed-off-by: Andrew Burkett <burkett.andrew@gmail.com>
@dnephin
Copy link

dnephin commented Nov 7, 2014

Nice, this looks good. Thanks for the contribution!

Could you write a unit test for it as well? It will probably be easier to test if it's extracted into a new function, maybe build_port_bindings() ?

@drewkett drewkett changed the title Support multiple port mappings for same internal port Support multiple port bindings for same internal port Nov 7, 2014
Signed-off-by: Andrew Burkett <burkett.andrew@gmail.com>
@aanand
Copy link

aanand commented Nov 7, 2014

LGTM

@dnephin
Copy link

dnephin commented Nov 7, 2014

LGTM, thanks for the contribution!

dnephin added a commit that referenced this pull request Nov 7, 2014
Support multiple port bindings for same internal port
@dnephin dnephin merged commit d3e94f2 into docker:master Nov 7, 2014
@aanand aanand added this to the 1.1.0 milestone Dec 19, 2014
yuval-k pushed a commit to yuval-k/compose that referenced this pull request Apr 10, 2015
Support multiple port bindings for same internal port
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants