【问题标题】:Docker Trusted Registry - Unable to satisfy available container slotDocker Trusted Registry - 无法满足可用的容器插槽
【发布时间】:2016-08-01 17:32:24
【问题描述】:

我正在尝试安装 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 服务器。我不知道那个问题是什么意思。感谢您的帮助

【问题讨论】:

  • --ucp-nodenode123 上的80 和443 端口真的免费吗?
  • 是的。在服务器上执行了“netstat -ano | grep ”,但没有任何返回。还尝试在它们上使用 telnet,但仍然没有
  • 作为 Docker 数据中心客户,您可以通过提交工单获得支持:support.docker.com/hc/en-us

标签: docker docker-trusted-registry


【解决方案1】:

我已尝试重现您遇到的问题(使用试用 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

【讨论】:

  • 实际上没有,DTR 没有安装在 UCP 节点之一上。它位于集群外部的自己的服务器上——它只能访问网络上的 UCP 节点。我没有把它放在其中一个节点上,因为文档说它需要打开端口 80 和 443,但 UCP 会占用这些。
  • 来自:docs.docker.com/docker-trusted-registry/installMake sure that the node you install DTR on is already joined to the UCP cluster. 尝试在 UCP 节点而非控制器上安装 DTR。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-07-20
  • 1970-01-01
  • 2016-06-12
  • 2020-09-10
  • 2015-07-28
  • 2020-08-01
相关资源
最近更新 更多