Sep 19, 2017 · The problem is that the docker dns runs on the host machine and the containers have the host machine ip in as a dns server. So… they try to connect to the host machine to resolve the other containers by name and they get blocked. So, you need to disable the firewall on that nic…
dns configuration option does not work on docker-compose==1.29.2. ... I tested DNS support in the context of Compose V2 and can confirm nameserver in ...
07.02.2016 · I am on CentOS 7 and I have this problem. I am on docker-compose 1.7.1 and Docker 1.11.1. dns: 8.8.8.8 is not added into /etc/resolv.conf at all and I am not able to add any host to /etc/hosts as well by linking some other service.
Oct 24, 2021 · Turns out the docker container attempts to get DNS responses from the gateway configured in the network that compose generates, and for some reason only gets "server failed" responses. Conversely, docker run just grabs the hosts DNS config which is why that works. Why only my windows containers are affected, i do not know. Further reading:
28.02.2020 · Based on some articles, I added the following ExecStart setting in the docker.service file to force a DNS server and then restarted docker and the docker-compose containers:--dns 8.8.8.8 But I see the same behavior after doing that -- DNS doesn't work on the new container.
Jan 18, 2017 · You will need to restart your containers for changes to DNS resolution to be picked up by them. You can of course override all the default settings using docker-compose. It has full options for explicitly setting DNS servers, DNS search options etc. As an example: You'll find the documentation for those features here.
Nov 20, 2018 · boostpaal changed the title Node DNS not working in Docker Compose DNS not working in Docker Compose on Dec 3, 2018 Author boostpaal commented on Dec 3, 2018 Network passthrough works but it's not a viable option for security reasons. I seems like Compose's native DNS server is the root of the problem.
08.03.2017 · Docker Windows CE, DNS not working from docker-compose up #31658. jasonterando opened this issue Mar 8, 2017 · 19 comments Labels. area/builder platform/desktop. Comments. Copy link jasonterando commented Mar 8, 2017. Description.
Feb 07, 2016 · I am on CentOS 7 and I have this problem. I am on docker-compose 1.7.1 and Docker 1.11.1. dns: 8.8.8.8 is not added into /etc/resolv.conf at all and I am not able to add any host to /etc/hosts as well by linking some other service.
Dear all, We were facing the same issue. Starting a container with docker run --dns was working fine, the file /etc/resolv.conf inherits the DNS servers of the host. However, using the dns option in docker-compose.yml leaves the default content: