I am having this issue in my Mac system 10.11.6
system3:postgres saurabh-gupta2$ docker build -t postgres .
Sending build context to Docker daemon 38.91kB
Step 1/51 : FROM registry.access.redhat.com/rhel7/rhel
Get https://registry.access.redhat.com/v2/: Service Unavailable
docker run -t apline
Unable to find image 'apline:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: Service Unavailable.
See 'docker run --help'.
I have looked for solution that says to set proxy , but i have set the proxy for the wifi .
https://docs.docker.com/docker-for-mac/networking/#httphttps-proxy-support
Still it is not working .
I have set proxy for docker to . It is not working .
in Preference -> proxies
Docker version 17.12 ce
I also want to know if proxy is issue then , how can i check it is set , what is work around for this ? Is i am in wrong path ?
Edit
Every answer helps , so share how you solve that .
I tried running on Windows, and got this problem after an update. I tried restarting the docker service as well as my pc, but nothing worked.
When running:
I got back:
Eventually, I tried: https://github.com/moby/moby/issues/22635#issuecomment-284956961
By changing the fixed address to 8.8.8.8:
Which worked for me! I still got the unauthorized message for
curl https://registry-1.docker.io/v2/
but I managed to pull images from docker hub.Just to add, in case anyone else comes across this issue.
On a Mac I had to logout and log back in.
Then it prompts for username (NOTE: Not email) and password. (Need an account on https://hub.docker.com to pull images down)
Then it worked for me.
It's clearly a proxy issue: docker proxies https connections to the wrong place. Bear in mind that docker proxy settings may be different from the operating system (and curl) ones. Here's how I managed to solve the issue:
First of all, find out where are you proxying your docker https requests:
and double check your https settings.
In my case, I realized that the "Https proxy" was set to
https://...
instead ofhttp://...
, so I corrected it in/etc/sysconfig/docker
file (I'm using RHEL7) and, after a docker restart with:the proxy variable shows up succesfully updated:
and everything works fine :-)