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 have solved this issue about
$ sudo docker run hello-world
following the Docker doc.If you are behind an HTTP Proxy server of corporate, this may solve your problem.
Docker doc also displays other situation about HTTP proxy setting.
For me the problem was solved by restarting the docker daemon:
One option which worked for me on MAC.
Click on the Docker Icon in the tray. Open Preferences -> Proxies. Click on Manual Proxy and specify Web Server (HTTP) proxy and Secure Web server (HTTPS) proxy in the same format as we specify in HTTPS_PROXY env variable. Choose Apply and Restart.
This Worked for me
Run
export DOCKER_CONTENT_TRUST=0
and then try it again.Got this from a network filter (LuLu on macOS) blocking traffic to/from Docker-related processes.
This Worked for me