docker proxy TLS handshake timeout.

docker 设置代理后下载镜像的时候会报错:

TLS handshake timeout.

解决办法:

/etc/systemd/system/docker.service.d# cat http-proxy.conf 
[Service] 
Environment="HTTP_PROXY=http://192.168.50.165:6500/" "NO_PROXY=localhost,127.0.0.1,hostname"
Environment="HTTPS_PROXY=http://192.168.50.165:6500/"

注意加的 "NO_PROXY=localhost,127.0.0.1,hostname" 起作用。

重启system的服务: systemctl daemon-reload
验证下配置是否正常加载:systemctl show --property=Environment docker
重启docker:systemctl restart docker

京ICP备11047313号-19 彩虹岛电子书