{"action":"created","issue":{"url":"https://api.github.com/repos/docker/for-mac/issues/684","repository_url":"https://api.github.com/repos/docker/for-mac","labels_url":"https://api.github.com/repos/docker/for-mac/issues/684/labels{/name}","comments_url":"https://api.github.com/repos/docker/for-mac/issues/684/comments","events_url":"https://api.github.com/repos/docker/for-mac/issues/684/events","html_url":"https://github.com/docker/for-mac/issues/684","id":178228699,"node_id":"MDU6SXNzdWUxNzgyMjg2OTk=","number":684,"title":"Resolv.conf on containers not using data from host","user":{"login":"phlcastro","id":2355081,"node_id":"MDQ6VXNlcjIzNTUwODE=","avatar_url":"https://avatars3.githubusercontent.com/u/2355081?v=4","gravatar_id":"","url":"https://api.github.com/users/phlcastro","html_url":"https://github.com/phlcastro","followers_url":"https://api.github.com/users/phlcastro/followers","following_url":"https://api.github.com/users/phlcastro/following{/other_user}","gists_url":"https://api.github.com/users/phlcastro/gists{/gist_id}","starred_url":"https://api.github.com/users/phlcastro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phlcastro/subscriptions","organizations_url":"https://api.github.com/users/phlcastro/orgs","repos_url":"https://api.github.com/users/phlcastro/repos","events_url":"https://api.github.com/users/phlcastro/events{/privacy}","received_events_url":"https://api.github.com/users/phlcastro/received_events","type":"User","site_admin":false},"labels":[{"id":415727364,"node_id":"MDU6TGFiZWw0MTU3MjczNjQ=","url":"https://api.github.com/repos/docker/for-mac/labels/area/network","name":"area/network","color":"fbca04","default":false},{"id":433449354,"node_id":"MDU6TGFiZWw0MzM0NDkzNTQ=","url":"https://api.github.com/repos/docker/for-mac/labels/osx/10.11.x","name":"osx/10.11.x","color":"d4c5f9","default":false},{"id":438330808,"node_id":"MDU6TGFiZWw0MzgzMzA4MDg=","url":"https://api.github.com/repos/docker/for-mac/labels/status/0-more-info-needed","name":"status/0-more-info-needed","color":"b60205","default":false},{"id":438330583,"node_id":"MDU6TGFiZWw0MzgzMzA1ODM=","url":"https://api.github.com/repos/docker/for-mac/labels/status/0-triage","name":"status/0-triage","color":"bfd4f2","default":false},{"id":438330723,"node_id":"MDU6TGFiZWw0MzgzMzA3MjM=","url":"https://api.github.com/repos/docker/for-mac/labels/status/0-wont-fix","name":"status/0-wont-fix","color":"1d76db","default":false},{"id":443825489,"node_id":"MDU6TGFiZWw0NDM4MjU0ODk=","url":"https://api.github.com/repos/docker/for-mac/labels/version/1.12.1","name":"version/1.12.1","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-09-21T02:21:18Z","updated_at":"2018-07-05T21:18:45Z","closed_at":"2017-02-17T11:03:10Z","author_association":"NONE","body":"### Expected behavior\n\nAccording to docs, all records on host file `resolv.conf` will be copied to the container.\nSo I create a few record lines in the `/etc/resolv.conf` file expecting to see them on `resolv.conf` file inside my containers.\n### Actual behavior\n\nNo record is copied from host to container (`search` or `nameserver` records)\n### Information\n\nDiagnostic Id: 2819C68F-61EB-4BDB-89C9-FD673AF91D17\n\nDocker for Mac: version: 1.12.1 (2d5b4d9)\nOS X: version 10.11.6 (build: 15G31)\nlogs: /tmp/2819C68F-61EB-4BDB-89C9-FD673AF91D17/20160920-225600.tar.gz\n[OK]     docker-cli\n[OK]     virtualization kern.hv_support\n[OK]     menubar\n[OK]     moby-syslog\n[OK]     dns\n[OK]     disk\n[OK]     system\n[OK]     app\n[OK]     osxfs\n[OK]     virtualization VT-X\n[OK]     db\n[OK]     slirp\n[OK]     logs\n[OK]     env\n[OK]     vmnetd\n[OK]     moby-console\n[OK]     moby\n[OK]     driver.amd64-linux\n### Steps to reproduce the behavior\n1. Customize host `resolv.conf` file\n2. Run your image (ie.: ubuntu)\n3. Check container `resolv.conf` file and verify if it matches\n### Other info\n\nTried with latest beta, same issue.\nRecords present on `scutil --dns` are also not imported to container.\nThe only way I made it work was using `--dns=` when first run a container\n"},"comment":{"url":"https://api.github.com/repos/docker/for-mac/issues/comments/402855743","html_url":"https://github.com/docker/for-mac/issues/684#issuecomment-402855743","issue_url":"https://api.github.com/repos/docker/for-mac/issues/684","id":402855743,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjg1NTc0Mw==","user":{"login":"keepsimple1","id":7699244,"node_id":"MDQ6VXNlcjc2OTkyNDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7699244?v=4","gravatar_id":"","url":"https://api.github.com/users/keepsimple1","html_url":"https://github.com/keepsimple1","followers_url":"https://api.github.com/users/keepsimple1/followers","following_url":"https://api.github.com/users/keepsimple1/following{/other_user}","gists_url":"https://api.github.com/users/keepsimple1/gists{/gist_id}","starred_url":"https://api.github.com/users/keepsimple1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keepsimple1/subscriptions","organizations_url":"https://api.github.com/users/keepsimple1/orgs","repos_url":"https://api.github.com/users/keepsimple1/repos","events_url":"https://api.github.com/users/keepsimple1/events{/privacy}","received_events_url":"https://api.github.com/users/keepsimple1/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T21:18:45Z","updated_at":"2018-07-05T21:18:45Z","author_association":"NONE","body":"In our case,  I see the same containers (built in the same way) has the \"search <>\" line in `/etc/resolv.conf` in some cases , but not in some other cases.  \r\n\r\nFor both cases, the Docker version and the Mac network setup is the same.  We are using Docker for Mac community edition 18.03.1-ce-mac65 (24312) . \r\n\r\nMy question is:  why in some cases the search domains are NOT copied from the Mac network setting into the Docker container /etc/resolv.conf ?   Thanks. \r\n"}}
{"actor":{"display_login":"keepsimple1"}}