{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12013","labels_url":"https://api.github.com/repos/docker/docker/issues/12013/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12013/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12013/events","html_url":"https://github.com/docker/docker/issues/12013","id":65812899,"number":12013,"title":"docker search gives no route to host","user":{"login":"sainath14","id":6599957,"avatar_url":"https://avatars.githubusercontent.com/u/6599957?v=3","gravatar_id":"","url":"https://api.github.com/users/sainath14","html_url":"https://github.com/sainath14","followers_url":"https://api.github.com/users/sainath14/followers","following_url":"https://api.github.com/users/sainath14/following{/other_user}","gists_url":"https://api.github.com/users/sainath14/gists{/gist_id}","starred_url":"https://api.github.com/users/sainath14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sainath14/subscriptions","organizations_url":"https://api.github.com/users/sainath14/orgs","repos_url":"https://api.github.com/users/sainath14/repos","events_url":"https://api.github.com/users/sainath14/events{/privacy}","received_events_url":"https://api.github.com/users/sainath14/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-02T01:36:43Z","updated_at":"2015-04-30T07:25:51Z","closed_at":"2015-04-02T21:21:45Z","body":"if i do docker search ubuntu, i get the following\r\n\r\nDEBU[7156] Calling GET /images/search                   \r\nINFO[7156] GET /v1.17/images/search?term=ubuntu         \r\nINFO[7156] +job search(ubuntu)                          \r\nINFO[7156] +job resolve_repository(ubuntu)              \r\nINFO[7156] -job resolve_repository(ubuntu) = OK (0)     \r\nDEBU[7156] pinging registry endpoint https://index.docker.io/v1/ \r\nDEBU[7156] attempting v1 ping for registry endpoint https://index.docker.io/v1/ \r\nDEBU[7156] Index server: https://index.docker.io/v1/    \r\nDEBU[7156] https://index.docker.io/v1/search?q=ubuntu -- HEADERS: map[User-Agent:[docker/1.5.0 go/go1.4.1 git-commit/833c62e kernel/3.19.2-rancher os/linux arch/amd64]] \r\nDEBU[7156] hostDir: /etc/docker/certs.d/index.docker.io \r\nGet https://index.docker.io/v1/search?q=ubuntu: dial tcp 162.242.195.84:443: no route to host\r\nINFO[7174] -job search(ubuntu) = ERR (1)                \r\nERRO[7174] Handler for GET /images/search returned error: Get https://index.docker.io/v1/search?q=ubuntu: dial tcp 162.242.195.84:443: no route to host \r\nERRO[7174] HTTP Error: statusCode=500 Get https://index.docker.io/v1/search?q=ubuntu: dial tcp 162.242.195.84:443: no route to host \r\nFATA[0018] Error response from daemon: Get https://index.docker.io/v1/search?q=ubuntu: dial tcp 162.242.195.84:443: no route to host \r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/97692604","html_url":"https://github.com/docker/docker/issues/12013#issuecomment-97692604","issue_url":"https://api.github.com/repos/docker/docker/issues/12013","id":97692604,"user":{"login":"anroots","id":469120,"avatar_url":"https://avatars.githubusercontent.com/u/469120?v=3","gravatar_id":"","url":"https://api.github.com/users/anroots","html_url":"https://github.com/anroots","followers_url":"https://api.github.com/users/anroots/followers","following_url":"https://api.github.com/users/anroots/following{/other_user}","gists_url":"https://api.github.com/users/anroots/gists{/gist_id}","starred_url":"https://api.github.com/users/anroots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anroots/subscriptions","organizations_url":"https://api.github.com/users/anroots/orgs","repos_url":"https://api.github.com/users/anroots/repos","events_url":"https://api.github.com/users/anroots/events{/privacy}","received_events_url":"https://api.github.com/users/anroots/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T07:25:51Z","updated_at":"2015-04-30T07:25:51Z","body":"Happening for me, too.\r\n\r\n```\r\n$ docker search ubuntu                             \r\nFATA[0000] Error response from daemon: Get https://index.docker.io/v1/search?q=ubuntu: dial tcp 162.242.195.84:443: no route to host\r\n```\r\n\r\nI'm behind a proxy.\r\n\r\n```\r\n$ env | grep proxy\r\nno_proxy=localhost,docker-registry.local,/var/run/docker.sock\r\nhttps_proxy=http://proxy.local:3128\r\nsocks_proxy=socks://proxy.local:3128/\r\nhttp_proxy=http://proxy.local:3128\r\n```\r\n\r\n`/etc/default/docker` contains the following:\r\n\r\n```\r\nDOCKER_OPTS=\"--dns 192.168.0.252 --dns 192.168.0.253 --dns 8.8.8.8 --dns 8.8.4.4\"\r\n \r\nexport http_proxy='http://proxy.local:3128'\r\nexport https_proxy=$http_proxy\r\nexport no_proxy=\"docker-registry.local\"\r\n```\r\n\r\nCurl from the terminal works.\r\n\r\n```\r\n$ curl https://index.docker.io/v1/search\\?q\\=ubuntu\r\n```"}}