Docker containers unable to resolve each other

  docker, ubuntu

I built two containers, one an application and one a database. However, they are not able to communicate with each other. I suspect this is because the DNS server is set to 1.1.1.1 and 8.8.8.8 in /etc/resolv.conf. I recall setting this somewhere when I was installing docker on Ubuntu as a snap.

Is there a way to resolve this issue such that they are able to communicate?

Thanks!

Source: Docker Questions

LEAVE A COMMENT