DEV Community

[Comment from a deleted post]
Collapse
 
miggy_pop profile image
miggy_pop • Edited

I had a somewhat similar issue at my work place, where our internal network blocks access to certain external resources (in particular, attempting to download an image from Oracle). Can you try to perform the command on a different network?

Collapse
 
mendoza profile image
David Mendoza (He/Him)

I actually tried with my mobile hotspot, but its the same carrier... so I'm not sure if thats it...
but I couldn't login or pull anyway
😢

Collapse
 
miggy_pop profile image
miggy_pop

That's odd. Shouldn't be an issue with carriers, but rather some sort of firewall configuration.

I saw in a previous comment that you attempted to change the DNS for your Docker service, but weren't sure if you did it right. Well, here's how to do it, if you want to try it:
Edit the file "/etc/resolv.conf" and change the value of "nameserver" to 8.8.8.8. Save the file and restart the docker service with "sudo systemctl restart docker".

 
mendoza profile image
David Mendoza (He/Him)

ok so here is my etc/resolv.conf
image

and it came back...

other image

 
miggy_pop profile image
miggy_pop

Can you curl the URL registry-1.docker.io/v2/, then? If not, I'm having a hard time believing it's not related to some network setting. Sorry I couldn't be of more help!

 
mendoza profile image
David Mendoza (He/Him)

Yes I can it just say I'm unauthorized in a JSOn response