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

Bad Request: malformed Host header (Docker::Error::ClientError) #18

Open
mariosotil opened this issue Jan 11, 2017 · 4 comments
Open

Bad Request: malformed Host header (Docker::Error::ClientError) #18

mariosotil opened this issue Jan 11, 2017 · 4 comments

Comments

@mariosotil
Copy link

mariosotil commented Jan 11, 2017

I'm getting this error. I tried with other images, and finally with the dockerfile-from-image itself

$ alias dfimage="docker run --rm -v /var/run/docker.sock:/var/run/docker.sock centurylink/dockerfile-from-image"
$ dfimage -f centurylink/dockerfile-from-image
/usr/lib/ruby/gems/2.2.0/gems/docker-api-1.24.1/lib/docker/connection.rb:42:in `rescue in request': 400 Bad Request: malformed Host header (Docker::Error::ClientError)
from /usr/lib/ruby/gems/2.2.0/gems/docker-api-1.24.1/lib/docker/connection.rb:38:in `request'
from /usr/lib/ruby/gems/2.2.0/gems/docker-api-1.24.1/lib/docker/connection.rb:65:in `block (2 levels) in <class:Connection>'
from /usr/lib/ruby/gems/2.2.0/gems/docker-api-1.24.1/lib/docker/image.rb:172:in `all'
from /usr/src/app/dockerfile-from-image.rb:32:in `<main>'

The computer is a Ubuntu Server 16.04 with Docker 1.12.5. May you help me, please?

@Synesso
Copy link

Synesso commented Jan 24, 2017

Also witnessed on OSX.

@synthbeat
Copy link

MacOS Sierra 10.12.2 with Docker 1.13.0, the same bug happens.

@jheiss
Copy link

jheiss commented Feb 2, 2017

This is a duplicate of #14, which has more info and workarounds

@rakhi-alina
Copy link

$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock centurylinklabs/dockerfile-from-image -f rakhi1905alina/persephone
/usr/lib/ruby/gems/2.2.0/gems/docker-api-1.24.1/lib/docker/connection.rb:42:in rescue in request': 400 Bad Request: malformed Host header (Docker::Error::ClientError) from /usr/lib/ruby/gems/2.2.0/gems/docker-api-1.24.1/lib/docker/connection.rb:38:in request'
from /usr/lib/ruby/gems/2.2.0/gems/docker-api-1.24.1/lib/docker/connection.rb:65:in block (2 levels) in <class:Connection>' from /usr/lib/ruby/gems/2.2.0/gems/docker-api-1.24.1/lib/docker/image.rb:172:in all'
from /usr/src/app/dockerfile-from-image.rb:32:in <main>' $ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock centurylinklabs/dockerfile-from-image -f 48139b6c86c3 /usr/lib/ruby/gems/2.2.0/gems/docker-api-1.24.1/lib/docker/connection.rb:42:in rescue in request': 400 Bad Request: malformed Host header (Docker::Error::ClientError)
from /usr/lib/ruby/gems/2.2.0/gems/docker-api-1.24.1/lib/docker/connection.rb:38:in request' from /usr/lib/ruby/gems/2.2.0/gems/docker-api-1.24.1/lib/docker/connection.rb:65:in block (2 levels) in class:Connection'
from /usr/lib/ruby/gems/2.2.0/gems/docker-api-1.24.1/lib/docker/image.rb:172:in all' from /usr/src/app/dockerfile-from-image.rb:32:in

'

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

5 participants