2015-11-04 72 views
5

我安裝碼頭工具箱,我想連接到我的私人註冊表。碼頭拉/推不工作與不安全的註冊表

我增加了以下內容/var/lib/boot2docker/profile

EXTRA_ARGS=' 
--label provider=virtualbox --insecure-registry http://myregistry.com:80 

' 

我能夠登錄到註冊表成功。但是當我嘗試從註冊表中拔出/推送時,出現以下錯誤。

Error response from daemon: unable to ping registry endpoint 
https://myregistry.com:80/v0/ v2 ping attempt failed with error: Get 
https://myregistry.com:80/v2/: tls: oversized record received with 
length 20527 v1 ping attempt failed with error: Get 
https://myregistry.com:80/v1/_ping: tls: oversized record received 
with length 20527 

任何幫助,將不勝感激。由於

回答

0

的主要途徑調試,因爲在issue 958,是在調試運行守護泊塢窗:

docker -D -d 

在你的情況下,V2註冊表無法聯絡,然後企圖V1,給予你看到的錯誤。
The logs應該告訴你更多。

確保你已按照Deploying a plain HTTP registry

+0

感謝@VonC。問題是,當我登錄它使用「http://」,當我拉它使用「https://」。我不知道爲什麼。我不知道我錯過了什麼。 –

+0

@ShriramSharma這讓我想起了https://github.com/docker/distribution/issues/1028#issuecomment-148958771和https://github.com/docker/docker/issues/17317,但是你沒有nginx在你的設置中,是嗎? – VonC

+0

不,我沒有nginx –

3

我能解決這個問題。

代替

--insecure-registry http://myregistry.com:80 

我做

--insecure-registry=myregistry.com 

和它的工作

+0

良好的反饋,比我的答案更具體。 +1 – VonC

相關問題