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

"container_port" is ignored in "HOST" networking mode #5

Open
dcvan24 opened this issue Mar 19, 2018 · 0 comments
Open

"container_port" is ignored in "HOST" networking mode #5

dcvan24 opened this issue Mar 19, 2018 · 0 comments
Labels
caveats Caveats wontfix This will not be worked on

Comments

@dcvan24
Copy link
Collaborator

dcvan24 commented Mar 19, 2018

For containers in "HOST" mode, Docker does not allow a container port to be mapped to a host port different from the container one. So if a container needs to publish port 8080, its host port must be set to 8080 regardless what value is assigned to the container_port field. The container should be set to "BRIDGE" or "CONTAINER" mode if there are container ports to be mapped to ephemeral host ports.

@dcvan24 dcvan24 added caveats Caveats wontfix This will not be worked on labels Mar 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
caveats Caveats wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant