DNS settings¶
If you have issues related to the DNS settings, the following error message may occur:
curl: (6) Could not resolve host
The issue may occur if a VPN is used to connect to the cloud or a local DNS forwarder is set up.
The workaround is to change the default DNS settings for Docker:
Log in to your local machine.
Identify your internal or corporate DNS server address:
systemd-resolve --status
Create or edit
/etc/docker/daemon.json
by specifying your DNS address:{ "dns": ["<YOUR_DNS_ADDRESS>"] }
Restart the Docker daemon:
sudo systemctl restart docker