{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/2847","repository_url":"https://api.github.com/repos/docker/compose","labels_url":"https://api.github.com/repos/docker/compose/issues/2847/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/2847/comments","events_url":"https://api.github.com/repos/docker/compose/issues/2847/events","html_url":"https://github.com/docker/compose/issues/2847","id":132006214,"number":2847,"title":"dns configuration option does not work on docker-compose==1.6.0","user":{"login":"mmarzantowicz","id":904394,"avatar_url":"https://avatars2.githubusercontent.com/u/904394?v=4","gravatar_id":"","url":"https://api.github.com/users/mmarzantowicz","html_url":"https://github.com/mmarzantowicz","followers_url":"https://api.github.com/users/mmarzantowicz/followers","following_url":"https://api.github.com/users/mmarzantowicz/following{/other_user}","gists_url":"https://api.github.com/users/mmarzantowicz/gists{/gist_id}","starred_url":"https://api.github.com/users/mmarzantowicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmarzantowicz/subscriptions","organizations_url":"https://api.github.com/users/mmarzantowicz/orgs","repos_url":"https://api.github.com/users/mmarzantowicz/repos","events_url":"https://api.github.com/users/mmarzantowicz/events{/privacy}","received_events_url":"https://api.github.com/users/mmarzantowicz/received_events","type":"User","site_admin":false},"labels":[{"id":279261680,"url":"https://api.github.com/repos/docker/compose/labels/area/networking","name":"area/networking","color":"c7def8","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":30,"created_at":"2016-02-07T20:18:00Z","updated_at":"2017-11-22T02:40:28Z","closed_at":"2016-02-11T18:57:04Z","author_association":"NONE","body":"Step 1:\n\n```\n$ cat docker-compose.yml \nversion: \"2\"\n\nservices:\n    testnet:\n        image: fedora:23\n        dns: 192.168.1.1\n        command: /bin/bash\n```\n\nStep 2:\n\n```\n$ docker-compose -f docker-compose.yml run testnet\n```\n\nStep 3:\n\n```\n[root@bbd9f61098fb /]# cat /etc/resolv.conf \nsearch xxx.yyy.tld\nnameserver 127.0.0.11\noptions ndots:0\n```\n\nAs you can see, `dns` option is ignored by `docker-compose` and some garbage is set instead. This prevents my containers from starting up because they require to use mentioned DNS server. BTW, what kind of shit is 127.0.0.11, and how it get to resolve.conf?\n\nWith version 1 of yaml file everything is working as expected (nameserver is set correctly).\n"},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/346226238","html_url":"https://github.com/docker/compose/issues/2847#issuecomment-346226238","issue_url":"https://api.github.com/repos/docker/compose/issues/2847","id":346226238,"user":{"login":"Stark-X","id":13653522,"avatar_url":"https://avatars1.githubusercontent.com/u/13653522?v=4","gravatar_id":"","url":"https://api.github.com/users/Stark-X","html_url":"https://github.com/Stark-X","followers_url":"https://api.github.com/users/Stark-X/followers","following_url":"https://api.github.com/users/Stark-X/following{/other_user}","gists_url":"https://api.github.com/users/Stark-X/gists{/gist_id}","starred_url":"https://api.github.com/users/Stark-X/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stark-X/subscriptions","organizations_url":"https://api.github.com/users/Stark-X/orgs","repos_url":"https://api.github.com/users/Stark-X/repos","events_url":"https://api.github.com/users/Stark-X/events{/privacy}","received_events_url":"https://api.github.com/users/Stark-X/received_events","type":"User","site_admin":false},"created_at":"2017-11-22T02:40:28Z","updated_at":"2017-11-22T02:40:28Z","author_association":"NONE","body":"As @jesuGMZ  said, I added `network_mode` to my docker-compose.yml solved the issue.\r\nFYI.\r\n```\r\ndocker-compose version 1.11.2, build dfed245\r\ndocker-py version: 2.1.0\r\nCPython version: 2.7.13\r\nOpenSSL version: OpenSSL 1.0.1t  3 May 2016\r\n```\r\n```\r\nNetwork: null overlay bridge host\r\n```\r\n```\r\nClient:\r\n Version:      1.12.3\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   6b644ec\r\n Built:\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.12.3\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   6b644ec\r\n Built:\r\n OS/Arch:      linux/amd64\r\n```"}}
{"actor":{"display_login":"Stark-X"}}