简体   繁体   English

gnutls_handshake() 失败:关闭通知 - Docker 且仅在一个网络上

[英]gnutls_handshake() failed: Close notify - Docker and Only on one network

Just came across a really odd problem.刚刚遇到一个非常奇怪的问题。

I have been doing some work with Docker images and Dockerfile which included some bower install commands.我一直在使用 Docker 镜像和 Dockerfile 做一些工作,其中包括一些 bower 安装命令。 It was all fine until today was the day I got a new broadband provider (Virgin Media in the UK) and all of a sudden i start getting errors whist trying to build images such as一切都很好,直到今天我得到了一家新的宽带提供商(英国的 Virgin Media),突然间我开始在尝试构建图像时出错,例如

bower ember#1.13.12                        ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/components/ember.git", exit code of #128 fatal: unable to access 'https://github.com/components/ember.git/': gnutls_handshake() failed: Close notify

Additional error details:
fatal: unable to access 'https://github.com/components/ember.git/': gnutls_handshake() failed: Close notify


I then tried by tethering to my mobile phone (4g) and it works perfectly fine.然后我尝试绑定到我的手机 (4g),它工作得很好。 So there are many commands in the bower.json and it seems to randomly fail at any.所以 bower.json 中有很多命令,它似乎随机失败。

Even a simple command like cloning a repo from within the Dockerfile , fails when i connect to my new network but works with other networks.即使是像从 Dockerfile 中克隆 repo 这样的简单命令,当我连接到我的新网络但与其他网络一起工作时也会失败。

Oddly enough if i use the git clone command on my Mac or even the bower install with the exact same repo it all works fine (with new network and 4G) however as soon as I try to run via Dockerfile I get the errors.奇怪的是,如果我在 Mac 上使用 git clone 命令,甚至使用完全相同的 repo 安装 bower,它都可以正常工作(使用新网络和 4G),但是一旦我尝试通过 Dockerfile 运行,我就会收到错误消息。

I have checked my router and cannot really see if it is a router issue what it could possibly be.我已经检查了我的路由器,但无法真正确定这是否是路由器问题。 The WIFI signal is 200Mbs so it surely can't be that. WIFI信号是200Mbs,所以肯定不可能。

The error is raised because of the protocal used by git.由于 git 使用的协议而引发错误。 Just replace 'https' with 'http', it works for my case.只需将 'https' 替换为 'http',它适用于我的情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM