Reputation: 31
I am currently not able to resolve any hostnames inside my DDEV web container.
curl www.youtube.com
is working perfectly fine inside WSL 2, but once I ssh into the ddev web container using ddev ssh
and run curl www.youtube.com
, I get the following error:
curl: (6) Could not resolve host: www.youtube.com
Upvotes: 0
Views: 134
Reputation: 31
I just fixed it through creating a daemon.json
inside my WSL 2 Ubuntu installation (\\wsl$\Ubuntu\etc\docker\daemon.json
), with the following content:
{
"dns": ["8.8.8.8"]
}
Afterwards, I just had to run ddev poweroff
, restart wsl running wsl --shutdown
in a powershell instance and restarting my ddev project again.
Upvotes: 1