I am trying to pull docker image from docker hub to azure following this docs on docker https://docs.docker.com/cloud/aci-integration/.
when I enter the command:
docker login azure
I get the error:
Error response from daemon: Get https://azure/v2/: dial tcp: lookup azure: no such host
I am not behind any vpn or proxy. I have tried some of the solutions mentioned in other threads like adding 8.8.8.8 & 8.8.8.4 in my resolv.conf and restarting docker daemon. But those solutions did not work.
I am on Ubuntu 20.04 and I had the same problem. I fixed it by uninstalling the docker-compose package which ubuntu provided and using the install script as documented here. The Ubuntu package doesn't seem to have the Azure integration features built-in.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With