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

[specific ci=1-25-Docker-Port-Map]unmap port only for mapped container #6210

Merged
merged 3 commits into from
Sep 6, 2017

Conversation

emlin
Copy link
Contributor

@emlin emlin commented Sep 5, 2017

fixes #6197
During container remove, or in container event handler in persona, it will try to unmap port mapping if the configured port is mapped. But the unmapping didn't check if the stopped or removed container is the mapped container in port mapping.
The result is that if two containers have same port mapping, with only one container is running, if remove the stopped container, the port mapping for running container will be removed, and make the connection unreachable, even if nothing happens for the running container.

Copy link
Contributor

@rogeliosanchez rogeliosanchez left a comment

Choose a reason for hiding this comment

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

lgtm

@emlin emlin merged commit 08a21b7 into vmware:master Sep 6, 2017
@emlin emlin deleted the 6197 branch September 6, 2017 20:12
mhagen-vmware pushed a commit that referenced this pull request Sep 13, 2017
AngieCris pushed a commit to AngieCris/vic that referenced this pull request Nov 20, 2017
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.

VIC endpoint delay or error in releasing explicit port mapping
6 participants