skip to Main Content

I am using Docker on my Ubuntu 20.04 system. When I am trying to build a docker image it shows an error like

=> ERROR [internal] load metadata for docker.io/library/ubuntu:trusty
=> [auth] library/ubuntu:pull token for registry-1.docker.io
-------
>[internal] load metadata for docker.io/library/ubuntu:trusty:
----------------------
Dockerfile:1
----------------------
ERROR: failed to solve: ubuntu:trusty: failed to authorize: failed to fetch oauth token: post "https://auth.docker.io/token" : dial tcp: lookup auth.docker.io on 127.0.0.53:53 read udp 192.xxx.xx.xxx:xxxxx->127.0.0.53.53: i/o timeout

Until yesterday the build was working fine. But suddenly this error comes today and the build is not happening.

What is the issue here?

2

Answers


  1. Maybe some download layer is corrupt.

    Try cleaning up your environment by docker system prune --all the try again.

    Login or Signup to reply.
  2. Have you tried restarting the Docker daemon?

    sudo service docker restart
    

    Restart the docker daemon and try again.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search