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 and 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?


Source: Docker Questions