{"action":"created","issue":{"url":"https://api.github.com/repos/swipely/docker-api/issues/415","repository_url":"https://api.github.com/repos/swipely/docker-api","labels_url":"https://api.github.com/repos/swipely/docker-api/issues/415/labels{/name}","comments_url":"https://api.github.com/repos/swipely/docker-api/issues/415/comments","events_url":"https://api.github.com/repos/swipely/docker-api/issues/415/events","html_url":"https://github.com/swipely/docker-api/issues/415","id":164471226,"number":415,"title":"Docker built with Go 1.6 not supported","user":{"login":"Confusion","id":307722,"avatar_url":"https://avatars.githubusercontent.com/u/307722?v=3","gravatar_id":"","url":"https://api.github.com/users/Confusion","html_url":"https://github.com/Confusion","followers_url":"https://api.github.com/users/Confusion/followers","following_url":"https://api.github.com/users/Confusion/following{/other_user}","gists_url":"https://api.github.com/users/Confusion/gists{/gist_id}","starred_url":"https://api.github.com/users/Confusion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Confusion/subscriptions","organizations_url":"https://api.github.com/users/Confusion/orgs","repos_url":"https://api.github.com/users/Confusion/repos","events_url":"https://api.github.com/users/Confusion/events{/privacy}","received_events_url":"https://api.github.com/users/Confusion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-08T07:04:19Z","updated_at":"2016-07-08T13:21:33Z","closed_at":null,"body":"The current version of `docker-api` (1.29) is not compatible with e.g. the current `docker.io` (1.10.3) package in Ubuntu 16.04. The result of e.g. a `Docker.info` call is\r\n````\r\n400 Bad Request: malformed Host header\r\n````\r\n\r\nFrom https://github.com/emccode/rexray/issues/317 and https://github.com/NVIDIA/nvidia-docker/issues/83 you can surmise that the problem is that the docker in the package is built using Go 1.6.1 and there have been backwards incompatible changes to the Go http package. \r\n\r\nSpecifically, they are now checking the validity of the the Host header (related issue: https://github.com/golang/go/issues/13624, from there you can follow to the commit that made the change). The problem is that docker-api sends `/var/run/docker.sock` as the Host header. This is not valid according to [rfc 7230](https://tools.ietf.org/html/rfc7230). [This excon issue](https://github.com/excon/excon/issues/547) makes the case that the Host header should be empty.\r\n\r\nNote that it seems that until now the Host field was effectively ignored by Go, so this change should be completely backwards compatible and especially should not affect compatibility with older versions.\r\n\r\nBTW. docker-engine 1.10.3 in the Docker repos is built using Go 1.5.3 and works fine with 1.29"},"comment":{"url":"https://api.github.com/repos/swipely/docker-api/issues/comments/231357555","html_url":"https://github.com/swipely/docker-api/issues/415#issuecomment-231357555","issue_url":"https://api.github.com/repos/swipely/docker-api/issues/415","id":231357555,"user":{"login":"tlunter","id":787998,"avatar_url":"https://avatars.githubusercontent.com/u/787998?v=3","gravatar_id":"","url":"https://api.github.com/users/tlunter","html_url":"https://github.com/tlunter","followers_url":"https://api.github.com/users/tlunter/followers","following_url":"https://api.github.com/users/tlunter/following{/other_user}","gists_url":"https://api.github.com/users/tlunter/gists{/gist_id}","starred_url":"https://api.github.com/users/tlunter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlunter/subscriptions","organizations_url":"https://api.github.com/users/tlunter/orgs","repos_url":"https://api.github.com/users/tlunter/repos","events_url":"https://api.github.com/users/tlunter/events{/privacy}","received_events_url":"https://api.github.com/users/tlunter/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T13:21:33Z","updated_at":"2016-07-08T13:21:33Z","body":"@Confusion https://github.com/swipely/docker-api/commit/61a4497a3af94d199b4c679aa13e56361acf1851\r\n\r\nThis is noted in the README.  If you update your version of excon, this shouldn't be an issue.  Can you validate?"}}
{"actor":{"display_login":"tlunter"}}