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
I just fixed it through creating a daemon.json
inside my WSL 2 Ubuntu installation (\wsl$Ubuntuetcdockerdaemon.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.
3