500 error on https://hub.docker.com

Even I was working on building my application, I faced same issue, I resolved it with this commands:
sudo service docker status ,
sudo systemctl status docker ,
sudo journalctl -u docker.service --since “10 minutes ago” | tail -20 ,
cat /etc/resolv.conf ,
resolvectl status ,
nslookup registry-1.docker.io .
Then rebuild your containers with no cache :
docker-compose build --no-cache