-
Notifications
You must be signed in to change notification settings - Fork 2k
Malformed HTTP Request #869
Comments
Thanks for reporting. Can you try it with just |
Same issue. See below. rajurs@rajurs: On 03/24/2015 03:29 PM, Evan Hazlett wrote:
|
hmm ok thanks -- could you run |
@rajurs - It's a little odd that |
Being a Linux Noob, I don’t know why the quotes are not showing up! I just checked the version for docker machine, I am running 0.1.0 Sent from Windows Mail From: Dave Henderson @rajurs - It's a little odd that machine env test returns a DOCKER_CERT_PATH without double-quotes. Also, machine config test should have double-quotes surrounding each of the paths. Which version of docker-machine is this? — |
Here is what is confusing to me… When I remove the machines, (machine stop, rm etc) and then just use the docker installation on the Ubuntu box, docker version says its 1.5 (this is the docker installation from sudo apt-get install docker.io). When a machine is running, docker version is returning Client Version 1.0.1 Rajurs Sent from Windows Mail From: Evan Hazlett hmm ok thanks -- could you run docker version as well? — |
@rajurs - would you mind trying this out with the 0.2.0 release candidate? Download it from https://github.com/docker/machine/releases/tag/v0.2.0-rc1 I thought you were using a more recent build, which is why I assumed there would be quotes :) |
I downloaded the linux amd64 binary from the link below and ran machine It still says it is version Is this the right version? Does not say its 0.2.0 On 03/24/2015 06:39 PM, Dave Henderson wrote:
|
@rajurs yes there was a versioning issue but that is the correct SHA for the RC1. Do you have any aliases or functions in your shell config that would be changing the Docker binary used? Can you also run Thanks |
Nope, its a clean machine with no aliases. Even with version 0.2.0, machine is failing to list containers. Here is what I did: rajurs@rajurs: rajurs@rajurs: rajurs@rajurs: When I run docker version, this is what I get.. On 03/25/2015 09:30 AM, Evan Hazlett wrote:
|
So it looks like you have an old version of the client as it cannot even get the Docker version. Can you try updating your local client to 1.5? |
Evan, Installed newer versions of machine and docker. Things seem to be working as documented. Thanks Rajurs Sent from Surface From: Evan Hazlett So it looks like you have an old version of the client as it cannot even get the Docker version. Can you try updating your local client to 1.5? — |
@rajurs awesome! thanks for reporting and letting us know it fixed it! |
Trying to get Docker-Machine to run on Ubuntu 14.04. Machine gets created just fine on VirtualBox
The env variables are set, I have a valid IP, TLS certs seem to be in place but docker commands fail when called directly (like docker ps or docker run) with the malformed error.
If I run docker $(machine config test) command, everything is just fine. I can ssh into the machine as well.
rajurs@rajurs:
$ machine ls$ machine urlNAME ACTIVE DRIVER STATE URL SWARM
test * virtualbox Running tcp://192.168.99.100:2376
rajurs@rajurs:
tcp://192.168.99.100:2376
rajurs@rajurs:
$ machine config test$--tls --tlscacert=/home/rajurs/.docker/machine/machines/test/ca.pem --tlscert=/home/rajurs/.docker/machine/machines/test/cert.pem --tlskey=/home/rajurs/.docker/machine/machines/test/key.pem -H="tcp://192.168.99.100:2376"rajurs@rajurs:
rajurs@rajurs:
$$ machine env testrajurs@rajurs:
export DOCKER_TLS_VERIFY=yes
export DOCKER_CERT_PATH=/home/rajurs/.docker/machine/machines/test
export DOCKER_HOST=tcp://192.168.99.100:2376
rajurs@rajurs:
$ eval "$(machine env test)"$ docker psrajurs@rajurs:
2015/03/24 13:49:58 Get http://192.168.99.100:2376/v1.12/containers/json: malformed HTTP response "\x15\x03\x01\x00\x02\x02"
But this works!
rajurs@rajurs:
$ docker $(machine config test) ps$CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
rajurs@rajurs:
Any ideas why the short form of docker commands are failing?
The text was updated successfully, but these errors were encountered: