Are you trying to up your docker instance and you noticed the following error, “curl: (6) Could not resolve host: nodejs.org”

There is an easy solution, how to fix this issue.

  1. Go To Docker Desktop -> Settings -> Docker Engine
  2. Add
{
  "dns": [
    "8.8.8.8"
  ],
 ....
}

DNS Record will help to your Docker to resolve the nodejs.org.

I hope that you find helpful this post.