Monday, May 21, 2018

docker compose error : ERROR: Service failed to build

ERROR: Service failed to build: Get https://registry-1.docker.io/: Get https://auth.docker.io/token?scope=: dial tcp: lookup auth.docker.io on 127.0.1.1:53: read udp 127.0.0.1:48237->127.0.1.1:53: i/o timeout

ERROR: Get https://registry-1.docker.io: Get https://auth.docker.io: dial tcp: lookup auth.docker.io on 127.0.1.1:53: read udp 127.0.0.1:47094->127.0.1.1:53: i/o timeout


Solution :
Add 8.8.8.8 in /etc/resolv.conf as a nameserver.
nameserver 8.8.8.8

Now try to run 
docker-compose up

You should not get the same error again.

No comments:

Post a Comment