首页 > 解决方案 > heroku-container-registry 被列入黑名单

问题描述

这个 Heroku + Docker 示例建议运行:

 $ heroku plugins:install heroku-container-registry

当我运行上面的命令时,结果是:

 »   Error: heroku-container-registry is blacklisted

被列入黑名单是什么意思;技术过时了吗?我可以解决它吗?

请参阅下面的@Chris 解决方案。在@Chris 教我我不需要之后heroku plugins:install,我尝试了接下来的步骤 以供将来参考,我遇到了一系列其他错误。在连接期间的 Heroku 错误中:

Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/version: open //./pipe/docker_engine:
The system cannot find the file specified. 
In the default daemon configuration on Windows, the docker client must be run elevated to connect. 
This error may also indicate that the docker daemon is not running.

然后我尝试运行 Docker Desktop for Windows,得到 Docker 错误,将按照这些说明进行操作

必须在 BIOS 中启用硬件辅助虚拟化和数据执行保护。请参阅 https://docs.docker.com/docker-for-windows/troubleshoot/#virtualization-must-be-enabled

标签: dockerherokuheroku-cli

解决方案


技术过时了吗?

不,但是那个文件是。heroku-container-registry代码已合并到主要的Heroku CLI中。您应该能够在不安装任何插件的情况下使用它。

尝试运行该教程中列出的第二个命令以开始:

heroku container:login

推荐阅读