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

前端 未结 19 1735
北海茫月
北海茫月 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://<>:3182”
    
    In addition you can set in the .DockerFile
    export http_proxy=http://<>:3182
    export https_proxy=http://>:3182
    export no_proxy=localhost,127.0.0.1,10.0.2.*
    
    Followed by:
    systemctl daemon-reload
    
    systemctl restart docker
    

    This Worked for me

提交回复
热议问题