Home > database >  Docker build throws 'Bad Gateway' error when getting the contatiner from "registry-1.
Docker build throws 'Bad Gateway' error when getting the contatiner from "registry-1.

Time:09-21

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 ?

CodePudding user response:

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.

CodePudding user response:

sudo docker ... works.

Maybe its firewall issue, but I am not sure

  • Related