簡體   English   中英

gnutls_handshake() 失敗:關閉通知 - Docker 且僅在一個網絡上

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

剛剛遇到一個非常奇怪的問題。

我一直在使用 Docker 鏡像和 Dockerfile 做一些工作,其中包括一些 bower 安裝命令。 一切都很好,直到今天我得到了一家新的寬帶提供商(英國的 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


然后我嘗試綁定到我的手機 (4g),它工作得很好。 所以 bower.json 中有很多命令,它似乎隨機失敗。

即使是像從 Dockerfile 中克隆 repo 這樣的簡單命令,當我連接到我的新網絡但與其他網絡一起工作時也會失敗。

奇怪的是,如果我在 Mac 上使用 git clone 命令,甚至使用完全相同的 repo 安裝 bower,它都可以正常工作(使用新網絡和 4G),但是一旦我嘗試通過 Dockerfile 運行,我就會收到錯誤消息。

我已經檢查了我的路由器,但無法真正確定這是否是路由器問題。 WIFI信號是200Mbs,所以肯定不可能。

由於 git 使用的協議而引發錯誤。 只需將 'https' 替換為 'http',它適用於我的情況。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM