{"action":"created","issue":{"url":"https://api.github.com/repos/gliderlabs/docker-alpine/issues/8","repository_url":"https://api.github.com/repos/gliderlabs/docker-alpine","labels_url":"https://api.github.com/repos/gliderlabs/docker-alpine/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/gliderlabs/docker-alpine/issues/8/comments","events_url":"https://api.github.com/repos/gliderlabs/docker-alpine/issues/8/events","html_url":"https://github.com/gliderlabs/docker-alpine/issues/8","id":58379041,"number":8,"title":"Not resolving using search domain","user":{"login":"NoumanSaleem","id":694071,"avatar_url":"https://avatars.githubusercontent.com/u/694071?v=3","gravatar_id":"","url":"https://api.github.com/users/NoumanSaleem","html_url":"https://github.com/NoumanSaleem","followers_url":"https://api.github.com/users/NoumanSaleem/followers","following_url":"https://api.github.com/users/NoumanSaleem/following{/other_user}","gists_url":"https://api.github.com/users/NoumanSaleem/gists{/gist_id}","starred_url":"https://api.github.com/users/NoumanSaleem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoumanSaleem/subscriptions","organizations_url":"https://api.github.com/users/NoumanSaleem/orgs","repos_url":"https://api.github.com/users/NoumanSaleem/repos","events_url":"https://api.github.com/users/NoumanSaleem/events{/privacy}","received_events_url":"https://api.github.com/users/NoumanSaleem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gliderlabs/docker-alpine/labels/documentation","name":"documentation","color":"5319e7"},{"url":"https://api.github.com/repos/gliderlabs/docker-alpine/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/gliderlabs/docker-alpine/labels/upstream","name":"upstream","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":48,"created_at":"2015-02-20T16:52:47Z","updated_at":"2016-02-17T23:51:01Z","closed_at":null,"body":"Hostname is not properly resolving within the container when setting --dns-search on Docker.\r\n\r\n**Docker settings**:\r\n```\r\nDOCKER_OPTS=\"--bip=172.17.42.1/16 --dns=172.17.42.1 --dns=10.0.2.15 --dns-search=service.consul\"\r\n```\r\n\r\n**gliderlabs/alpine**\r\n```\r\nvagrant@local:~$ docker run --rm -it gliderlabs/alpine sh\r\n/ # ping consul\r\nping: bad address 'consul'\r\n/ # ping consul.service.consul\r\nPING consul.service.consul (10.211.55.22): 56 data bytes\r\n64 bytes from 10.211.55.22: seq=0 ttl=64 time=0.045 ms\r\n```\r\n\r\n**progrium/busybox**\r\n```\r\nvagrant@local:~$ docker run --rm -it progrium/busybox\r\n/ # ping consul\r\nPING consul (10.211.55.22): 56 data bytes\r\n```\r\n\r\n\r\ngliderlabs/registrator#111"},"comment":{"url":"https://api.github.com/repos/gliderlabs/docker-alpine/issues/comments/185463050","html_url":"https://github.com/gliderlabs/docker-alpine/issues/8#issuecomment-185463050","issue_url":"https://api.github.com/repos/gliderlabs/docker-alpine/issues/8","id":185463050,"user":{"login":"andyshinn","id":315485,"avatar_url":"https://avatars.githubusercontent.com/u/315485?v=3","gravatar_id":"","url":"https://api.github.com/users/andyshinn","html_url":"https://github.com/andyshinn","followers_url":"https://api.github.com/users/andyshinn/followers","following_url":"https://api.github.com/users/andyshinn/following{/other_user}","gists_url":"https://api.github.com/users/andyshinn/gists{/gist_id}","starred_url":"https://api.github.com/users/andyshinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyshinn/subscriptions","organizations_url":"https://api.github.com/users/andyshinn/orgs","repos_url":"https://api.github.com/users/andyshinn/repos","events_url":"https://api.github.com/users/andyshinn/events{/privacy}","received_events_url":"https://api.github.com/users/andyshinn/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T23:51:01Z","updated_at":"2016-02-17T23:51:01Z","body":"Thanks for that! I thought I read somewhere Tim mentioning something like that. But couldn't find it.\r\n\r\nSo to recap, it sounds like this is a starting combination to get Alpine working with k8s service discovery:\r\n\r\n* Kubernetes 1.2.0 (at least alpha 5)\r\n* Images based on alpine:edge or gliderlabs/alpine:edge as of yesterday (Feb 16th, 2016)\r\n* Pod settings of `DNSPolicy=ClusterFirst`"}}