docker login azure fails

I’m trying to use Azure Container Instances (ACI) with docker. I’m meant to log in at first. I tried using this command

docker login azure

After putting in my username and password

Username: [email protected]

I get this error

Error response from daemon: Get https://azure/v2/: dial tcp: lookup azure: Temporary failure in name resolution

My docker version is

Client: Docker Engine - Community
 Version:           20.10.2
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        2291f61
 Built:             Mon Dec 28 16:17:43 2020
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

My docker-compose version is

docker-compose version 1.27.4, build 40524192

Source: Docker Questions