Docker for windows: “server misbehaving” when trying to pull

前端 未结 4 1673
旧巷少年郎
旧巷少年郎 2021-01-18 18:26

I\'m trying to run docker on windows (OS: Microsoft Windows 10 Pro 64bit, Docker ver: 18.09.0, build 4d60db4), by following the hello-world instruction here. Then I got thi

4条回答
  •  猫巷女王i
    2021-01-18 19:14

    The timeout in your last configuration is caused by the fact that you're not getting through the proxy to those external DNS servers (8.8.8.8 - 8.8.4.4), I think.

    You should be solving the first issue, being the server misbehaving. As was the case with me, mentioned here, this was caused by the unability of docker to authenticate with the proxy. My solution was to use cntml.

    The cntlm configuration is actually really straightforward if you follow their guidelines. When you have cntlm running, you need to configure docker to use that as a proxy instead of your corporate proxy. Just a plain proxy without authentication - most likely 127.0.0.1:3128, if you're running it on the same machine. cntlm will handle the authentication on the corporate proxy.

    As a reference, this is the cntlm config I used:

    Username        
    Domain          
    Password        
    
    PassLM          
    PassNT          
    PassNTLMv2      
    
    Proxy           :
    NoProxy         localhost, 127.0.0.*, 10.*, 192.168.*, 172.16.*.*
    
    Listen          3128
    

    You get the hashes by running cntlm -H -u @.

    Make sure you run cntlm in gateway mode cntlm -g (instead of cntlm -v).

    Good luck!

提交回复
热议问题