{"action":"created","issue":{"url":"https://api.github.com/repos/docker/for-win/issues/2058","repository_url":"https://api.github.com/repos/docker/for-win","labels_url":"https://api.github.com/repos/docker/for-win/issues/2058/labels{/name}","comments_url":"https://api.github.com/repos/docker/for-win/issues/2058/comments","events_url":"https://api.github.com/repos/docker/for-win/issues/2058/events","html_url":"https://github.com/docker/for-win/issues/2058","id":325401826,"number":2058,"title":"docker-compose DNS resolution not working and timing out","user":{"login":"abjrcode","id":12116499,"avatar_url":"https://avatars2.githubusercontent.com/u/12116499?v=4","gravatar_id":"","url":"https://api.github.com/users/abjrcode","html_url":"https://github.com/abjrcode","followers_url":"https://api.github.com/users/abjrcode/followers","following_url":"https://api.github.com/users/abjrcode/following{/other_user}","gists_url":"https://api.github.com/users/abjrcode/gists{/gist_id}","starred_url":"https://api.github.com/users/abjrcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abjrcode/subscriptions","organizations_url":"https://api.github.com/users/abjrcode/orgs","repos_url":"https://api.github.com/users/abjrcode/repos","events_url":"https://api.github.com/users/abjrcode/events{/privacy}","received_events_url":"https://api.github.com/users/abjrcode/received_events","type":"User","site_admin":false},"labels":[{"id":415734496,"url":"https://api.github.com/repos/docker/for-win/labels/area/compose","name":"area/compose","color":"fbca04","default":false},{"id":415754916,"url":"https://api.github.com/repos/docker/for-win/labels/area/network","name":"area/network","color":"fbca04","default":false},{"id":919007140,"url":"https://api.github.com/repos/docker/for-win/labels/version/18.03.1-ce-win65","name":"version/18.03.1-ce-win65","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-22T17:56:33Z","updated_at":"2018-05-25T08:37:03Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nPlease, check https://docs.docker.com/docker-for-windows/troubleshoot/.\r\nIssues without logs and details cannot be debugged, and will be closed.\r\n\r\nIssues unrelated to Docker for Mac will be closed.  In particular, see\r\n  - https://github.com/docker/compose/issues for docker-compose\r\n  - https://github.com/docker/machine/issues for docker-machine\r\n  - https://github.com/moby/moby/issues for Docker daemon\r\n  - https://github.com/docker/docker.github.io/issues for the documentation\r\n-->\r\n\r\n\r\n<!-- Replace `- [ ]` with `- [x]`, or click after having submitted the issue. -->\r\n  - [x] I have tried with the latest version of my channel (Stable or Edge)\r\n  - [x] I have uploaded Diagnostics\r\n  - Diagnostics ID: 5BAC09FD-6C88-49CE-ACBD-0A4B45B91E8D/2018-05-22_19-56-53\r\n\r\n### Expected behavior\r\nExpect name resolution to work according to documentation.\r\n### Actual behavior\r\nIt doesn't\r\n### Information\r\n<!--\r\nPlease, help us understand the problem.  For instance:\r\n  - Is it reproducible?\r\n  - Is the problem new?\r\n  - Did the problem appear with an update?\r\n  - A reproducible case if this is a bug, Dockerfiles FTW.\r\n-->\r\n  - Windows Version: Version 1803 (OS Build 17134.1)\r\n  - Docker for Windows Version:\r\n```\r\nClient:\r\n Version:      18.03.1-ce\r\n API version:  1.37\r\n Go version:   go1.9.5\r\n Git commit:   9ee9f40\r\n Built:        Thu Apr 26 07:12:48 2018\r\n OS/Arch:      windows/amd64\r\n Experimental: false\r\n Orchestrator: swarm\r\n\r\nServer:\r\n Engine:\r\n  Version:      18.03.1-ce\r\n  API version:  1.37 (minimum version 1.24)\r\n  Go version:   go1.9.5\r\n  Git commit:   9ee9f40\r\n  Built:        Thu Apr 26 07:21:42 2018\r\n  OS/Arch:      windows/amd64\r\n  Experimental: false\r\n```\r\n\r\n### Steps to reproduce the behavior\r\nversion: \"3.6\"\r\nservices:\r\n  web:\r\n    build: ./website/\r\n    ports:\r\n      - \"8080:80\"\r\n    depends_on:\r\n      - database\r\n  database:\r\n    build: ./database/\r\n    environment:\r\n      sa_password: some_pass\r\n      ACCEPT_EULA: Y\r\nI am using windows containers and more specifically `microsoft/aspnet:latest` and `microsoft/sql-server-windows:latest`\r\nI can't resolve `database` from within the `web` container\r\nI am not doing anything special inside the images of `web` nor `database`, just copying files\r\nI can successfully ping by IP, but `nslookup` on the ip times out"},"comment":{"url":"https://api.github.com/repos/docker/for-win/issues/comments/391983261","html_url":"https://github.com/docker/for-win/issues/2058#issuecomment-391983261","issue_url":"https://api.github.com/repos/docker/for-win/issues/2058","id":391983261,"user":{"login":"Dressee","id":17457009,"avatar_url":"https://avatars1.githubusercontent.com/u/17457009?v=4","gravatar_id":"","url":"https://api.github.com/users/Dressee","html_url":"https://github.com/Dressee","followers_url":"https://api.github.com/users/Dressee/followers","following_url":"https://api.github.com/users/Dressee/following{/other_user}","gists_url":"https://api.github.com/users/Dressee/gists{/gist_id}","starred_url":"https://api.github.com/users/Dressee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dressee/subscriptions","organizations_url":"https://api.github.com/users/Dressee/orgs","repos_url":"https://api.github.com/users/Dressee/repos","events_url":"https://api.github.com/users/Dressee/events{/privacy}","received_events_url":"https://api.github.com/users/Dressee/received_events","type":"User","site_admin":false},"created_at":"2018-05-25T08:37:03Z","updated_at":"2018-05-25T08:37:03Z","author_association":"NONE","body":"My issue can be pinpointed to docker network trying to open a socket on an existing ip:port(53) for DNS.\r\nAfter docker compose up/down the default network is removed and recreated but the TCP Connection on port 53 remain in listen state.\r\n\r\nAfter some iterations the newly created docker network will try to use an existing socket and this will fail. The result is that DNS resolving will not work."}}
{"actor":{"display_login":"Dressee"}}