Nodemailer with Docker Nodemailer with Docker docker docker

Nodemailer with Docker


Create a file /etc/docker/daemon.json

{"dns": ["89.101.160.5", "89.101.160.4"]}

Restart the docker service and try again and see if this works for you.

You are probably on office network which has its own DNS servers that you should be using. So you need to tell the Docker daemon which DNS server its containers should be using. That is what is creating the issue. The daemon.json file can be used to change the daemon configuration.