-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
requests.exceptions.SSLError: hostname '192.168.59.103' doesn't match 'boot2docker' #406
Comments
I was able to fix this by adding an entry to /etc/hosts on OSX: This is because SSL certs are signed against hostnames not IP addresses. Alternatively you could turn off the |
Thanks! |
@tbronchain did you try: |
Actually after a lot of try yesterday, I still didn't manage to get it working. But I think it's a boot2docker issue rather than docker-py (reason why I closed this issue and opened another on in their repo - which didn't have been answered yet). The problem is, boot2docker always require a TLS authentication, unless I add this Thanks for the help anyway! |
@cglewis workaround works for me |
Modifying Disabling verification completely defeats the point. The reason why This package is using |
|
I spent a good chunk of time yesterday stepping through the debugger until I found some certificate verification code doing something it shouldn't have been with On my machine, I can guarantee that There may be co-dependency on Python 2.7.9 to reproduce this bug. When I was stepping through the code, I believe |
Running into this issue via fig. |
Is it worth re-opening this issue until it's been fixed upstream? I can confirm that I'm getting the error on Mac OS/X 10.10.1 (14B25) "Yosemite", running Python 2.7.8, Boot2Docker-cli version: v1.4.1 (Git commit: 43241cb), fig 1.0.1, and VirtualBox 4.3.20 r96996. |
Does this help? #424 (comment) |
using the |
Yes, updating |
Same problem here. I'm using docker-py to develop an automation tool, On Wed, Jan 7, 2015 at 3:13 AM, Gregory Szorc notifications@github.com
|
Guys, you need to report that to the boot2docker maintainers, there's nothing I can do at my level about this issue. |
You can work around this in docker-py. Read #406 (comment) again. You could also throw a big giant warning in the docs that urllib3/requests is busted so future souls don't have to search out this issue. |
Also, this is purely a Python bug, not a boot2docker bug. |
Sure, but ideally |
Hopefully this helps 7a623c4 |
Also note that if the bug was indeed introduced in |
|
I understand this, which is why we have strict requirements in requirements.txt and minimum requirements in setup.py (although if it was entirely up to me I'd pin versions everywhere ~ but that's another debate). I only wanted to provide as much information as possible for people that might be affected. :) next release will prioritize system-provided urllib3 over the vendored version, so we should cover most cases this way. Thank you for helping resolve this. |
Hey guys,
I'm try to access some boot2docker (1.3.1 - mac) VMs built under custom name with docker-py (latest pip version - 0.6.0), and it seems there is something wrong in the SSL module.
Thanks for the help!
The text was updated successfully, but these errors were encountered: