Docker Trusted Registry - 无法满足可用的容器插槽

时间:2016-08-01 17:32:24

标签: docker docker-trusted-registry

我正在尝试安装Docker Truster Registry(DTR)。我正在执行以下命令:

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]

我能够从我尝试安装DTR的地方ping服务器。我不知道那个问题意味着什么。我感谢任何帮助

1 个答案:

答案 0 :(得分: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