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

前端 未结 19 1248
北海茫月
北海茫月 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:11
    NTML PROXY AND DOCKER 
    
    If your company is behind MS Proxy Server that using the proprietary NTLM protocol.
    
    You need to install **Cntlm** Authentication Proxy
    
    After this SET the proxy in 
    /etc/systemd/system/docker.service.d/http-proxy.conf) with the following format:
    
    [Service]
    
    Environment=“HTTP_PROXY=http://<<IP OF CNTLM Proxy Server>>:3182”
    
    In addition you can set in the .DockerFile
    export http_proxy=http://<<IP OF CNTLM Proxy Server>>:3182
    export https_proxy=http://<IP OF CNTLM Proxy Server>>:3182
    export no_proxy=localhost,127.0.0.1,10.0.2.*
    
    Followed by:
    systemctl daemon-reload
    
    systemctl restart docker
    

    This Worked for me

    0 讨论(0)
  • 2021-02-01 03:11

    In my case, stopping Proxifier fixed it. I added a rule to route any connections from vpnkit.exe as Direct and it now works.

    0 讨论(0)
  • 2021-02-01 03:13

    Just to add, in case anyone else comes across this issue.

    On a Mac I had to logout and log back in.

    docker logout
    
    docker login 
    

    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.

    0 讨论(0)
  • 2021-02-01 03:14
    1. ReCheck Proxy Settings with following commands

      docker info | grep Proxy

    2. Check VPN Connectivity

    3. If VPN not using CHECK NET connectivity

    4. Reinsrtall Docker and repeat above steps.

    5. Enjoy

    0 讨论(0)
  • 2021-02-01 03:19

    For me the problem was solved by restarting the docker daemon:

    sudo systemctl restart docker
    
    0 讨论(0)
  • 2021-02-01 03:19

    The answers are provided here amazing, but if you are new in that and you don't realize full error then you may see at the end of that error net/http: TLS handshake timeout. message means that you have a slow internet connection. So it can be only that problem that's it. Toodles

    0 讨论(0)
提交回复
热议问题