Docker build throws 'Bad Gateway' error when getting the contatiner from "registry-1.docker.io"

Viewed 43

When I run this command:

docker-compose pull --quiet --ignore-pull-failures

I get this error:

ERROR: Get "https://registry-1.docker.io/v2/": Bad Gateway

This was working fine before but it suddenly stopped working.

Is this docker issue ?

2 Answers

It happens sometimes!

Docker is not working at that time. You should restart your docker server. If you’re in windows and have a docker engine installed restart it manually by clicking on the docker icon on the bottom right then restart docker.

Or try the following command

service docker restart
docker pull...

If you are on linux based machine try the following command:

$ sudo systemctl daemon-reload #THIS IS RESCUE COMMAND…
$ sudo systemctl restart docker
$ sudo systemctl status docker
$ docker pull ...

Note : Try to log out and then login before executing the commands.

docker logout
docker login

you may also need to try connecting docker VM to direct internet connection without any firewall.

sudo docker ... works.

Maybe its firewall issue, but I am not sure

Related