docker: Error response from daemon: Get https://registry-1.docker.io/v2/: Service Unavailable. IN DOCKER , MAC

前端 未结 19 1444
北海茫月
北海茫月 2021-02-01 02:53

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          


        
19条回答
  •  臣服心动
    2021-02-01 03:21

    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:

    curl https://registry-1.docker.io/v2/ && echo Works
    

    I got back:

    {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}
    Works
    

    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.

提交回复
热议问题