-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Port mapping behaviour differs between docker-machine and centos 7 - the mapped host port is open even though the container port is closed #18189
Comments
Hi! Please read this important information about creating issues. If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead. If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information. This is an automated, informational response. Thank you. For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues BUG REPORT INFORMATIONUse the commands below to provide key information from your environment:
Provide additional environment details (AWS, VirtualBox, physical, etc.): List the steps to reproduce the issue: Describe the results you received: Describe the results you expected: Provide additional info you think is important: ----------END REPORT --------- #ENEEDMOREINFO |
Edited the issue with more information. |
To clarify the "can send data" is by doing
|
This is due to the userland proxy which handles local connections. You can disable it on the daemon with |
Thanks for the response! How do I run with userland proxy off/change it to be off? I see it's under the |
@CRogers You have to restart docker. |
BUG REPORT INFORMATION
List the steps to reproduce the issue:
On OS X, using docker-machine 0.5.0 and docker 1.9.0:
On Centos 7, with docker 1.9.1:
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
This is problematic for us as we are trying to wait for services to start from outside the docker container without knowing if they are http, https, other protocol etc. It works fine with docker-machine, but with centos 7 we cannot simply try to connect to the socket, as it will connect.
Another problem is we get really odd errors when pinging these services if they aren't up; for example performing a HTTPS get will result in a SSLHandshakeException rather than a ConnectionRefused.
More OS X information:
More Centos 7 infomation:
----------END REPORT ---------
The text was updated successfully, but these errors were encountered: