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

docker-py "Get http://: http: no Host in request URL" error when pulling docker image #1326

Closed
dvigueras opened this issue Dec 1, 2016 · 1 comment

Comments

@dvigueras
Copy link

From yesterday we cannot pull docker images using docker-py. It reports a missing http host error.

The closest related thing we've found is a missing serveraddress parameter value in docker remote API /auth: moby/moby#22254

Client:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   6b644ec
 Built:        Wed Oct 26 21:44:32 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   6b644ec
 Built:        Wed Oct 26 21:44:32 2016
 OS/Arch:      linux/amd64

docker-py versions we've tried with: 1.9.0 and 1.10.6

And here is the output error:

>>> import docker
>>> client = docker.from_env()
>>> client.pull('redis')
u'{"status":"Downloading from http://"}\r\n{"errorDetail":{"message":"Get http://: http: no Host in request URL"},"error":"Get http://: http: no Host in request URL"}\r\n'
>>>

Is anyone having the same issue?

@dvigueras
Copy link
Author

Update: the issue here is the same issue present in #1321
docker-py is no working with requests-2.12.2, but it works fine with requests-2.12.1.

Temporary workaround: pip uninstall requests && pip install requests==2.12.1

Closing this issue as it has nothing to do with docker-py

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

No branches or pull requests

1 participant