2016-08-01 35 views
9

我正在嘗試安裝Docker Truster註冊表(DTR)。我執行以下命令:Docker可信註冊表 - 無法滿足可用容器插槽

docker run -it --rm \ 
docker/dtr install \ 
--ucp-url https://10.000.000.125 \ 
--ucp-node node123 \ 
--dtr-external-url https://10.000.000.97 \ 
--ucp-username admin --ucp-password admin \ 
--ucp-ca "$(cat ucp-ca.pem)" \ 

我收到以下錯誤回:

ERRO[0000] Make sure that there is a node in your UCP cluster where port 80 and port 443 are open. Also confirm that all UCP node have the DTR images or can obtain them from Docker Hub. 
FATA[0000] Problem running container 'dtr-phase2' from image 'docker/dtr:2.0.2': Couldn't create container 'dtr-phase2' from image 'docker/dtr:2.0.2': Error response from daemon: Unable to find a node that satisfies the following conditions 
[available container slots] 
[node==node123 node!=node123] 

我能ping從那裏我試圖安裝DTR服務器。我不知道這個問題意味着什麼。我感謝任何幫助

+0

從'--ucp-node'節點上,80和443端口是否真的在'node123'上是空閒的? – vsminkov

+0

是的。在服務器上是否有「netstat -ano | grep 」,並且什麼都沒有回來。也試圖在他們上使用telnet,但沒有任何東西 – Ascalonian

+0

作爲一個Docker數據中心客戶,您可以通過提交一張票獲得支持:https://support.docker.com/hc/en-us –

回答

0

我試圖重現你有問題(使用試用DTR許可證)。

我假設您正在安裝DTR的節點已加入UCP羣集,您可以測試從DTR節點到UCP控制器上的TCP端口443的連接。

按照documentation

dtr-external-url, is the public IP or domain name where DTR can be reached

所以,準確地說,應該--dtr-external-url在你的情況10.000.000.97(雖然我同意參數名稱有點誤導)。

如果不知道任何有關UCP配置的細節(如聯網等),很難提供建議。但考慮到錯誤消息,我建議驗證DTR節點的主機名是否設置爲node123,並且已正確解析爲10.000.000.97

+0

其實不,DTR不是安裝在其中一個UCP節點上。它位於集羣外部的自己的服務器上 - 它只能訪問網絡上的UCP節點。我沒有把它放在其中一個節點上,因爲文檔說它需要打開端口80和443,但UCP會採用這些端口。 – Ascalonian

+0

從:https://docs.docker.com/docker-trusted-registry/install: 確保您安裝DTR的節點已加入UCP羣集。嘗試在UCP節點上安裝DTR而非控制器。 –