{"action":"created","issue":{"url":"https://api.github.com/repos/wercker/support/issues/176","labels_url":"https://api.github.com/repos/wercker/support/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/wercker/support/issues/176/comments","events_url":"https://api.github.com/repos/wercker/support/issues/176/events","html_url":"https://github.com/wercker/support/issues/176","id":120318348,"number":176,"title":"Wercker attempts to use HTTPS to access a TCP Docker host with no TLS","user":{"login":"dominics","id":97427,"avatar_url":"https://avatars.githubusercontent.com/u/97427?v=3","gravatar_id":"","url":"https://api.github.com/users/dominics","html_url":"https://github.com/dominics","followers_url":"https://api.github.com/users/dominics/followers","following_url":"https://api.github.com/users/dominics/following{/other_user}","gists_url":"https://api.github.com/users/dominics/gists{/gist_id}","starred_url":"https://api.github.com/users/dominics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominics/subscriptions","organizations_url":"https://api.github.com/users/dominics/orgs","repos_url":"https://api.github.com/users/dominics/repos","events_url":"https://api.github.com/users/dominics/events{/privacy}","received_events_url":"https://api.github.com/users/dominics/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-04T02:30:25Z","updated_at":"2015-12-04T03:26:25Z","closed_at":null,"body":"```\r\n$ env | grep DOCKER\r\nDOCKER_HOST=tcp://10.10.10.5:2376\r\n```\r\n\r\nMy host is running Docker without `--tls`. TLS verification is off. I have no `DOCKER_TLS_VERIFY` env var. However, \r\n\r\n```\r\n$ wercker build\r\nERROR Get https://10.10.10.5:2376/version: tls: oversized record received with length 20527\r\nFATAL Exiting.\r\n```\r\n\r\nWercker seems to be converting \"tcp://\" into \"https://\", which is obviously an invalid assumption. This happens regardless of specifying the docker host with an environment variable or with the `--docker-host` flag."},"comment":{"url":"https://api.github.com/repos/wercker/support/issues/comments/161863608","html_url":"https://github.com/wercker/support/issues/176#issuecomment-161863608","issue_url":"https://api.github.com/repos/wercker/support/issues/176","id":161863608,"user":{"login":"dominics","id":97427,"avatar_url":"https://avatars.githubusercontent.com/u/97427?v=3","gravatar_id":"","url":"https://api.github.com/users/dominics","html_url":"https://github.com/dominics","followers_url":"https://api.github.com/users/dominics/followers","following_url":"https://api.github.com/users/dominics/following{/other_user}","gists_url":"https://api.github.com/users/dominics/gists{/gist_id}","starred_url":"https://api.github.com/users/dominics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominics/subscriptions","organizations_url":"https://api.github.com/users/dominics/orgs","repos_url":"https://api.github.com/users/dominics/repos","events_url":"https://api.github.com/users/dominics/events{/privacy}","received_events_url":"https://api.github.com/users/dominics/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T03:26:25Z","updated_at":"2015-12-04T03:26:25Z","body":"Without the source, I'd guess this is happening because the CLI assumes 2375 is non-TLS and 2376 is TLS. Maybe valid because they're actually IANA-reserved. But still surprising. (Because `docker ps` makes no such distinction)."}}