malformed HTTP response

Issue: 執行docker指令時候,發生"malformed HTTP response"的錯誤訊息...

$ $(sudo ./boot2docker shellinit)
Writing /home/mort/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /home/mort/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /home/mort/.boot2docker/certs/boot2docker-vm/key.pem
$ sudo ./boot2docker status
running
$ docker ps
2015/02/24 17:31:38 Get http://192.168.59.104:2376/v1.12/containers/json: malformed HTTP response "\x15\x03\x01\x00\x02\x02"

Solve: 該錯誤是因為Docker Server與Client版本不同所造成,可以到Docker網站下載最新的Docker Client安裝,另外,Docker Server如果是在bot2docker環境下的話,可以透過boot2docker upgrade來更新,可以參考Boot2docker版本問題

results matching ""

    No results matching ""