【问题标题】:heroku-container-registry is blacklistedheroku-container-registry 被列入黑名单
【发布时间】:2019-12-05 14:00:21
【问题描述】:

This Heroku + Docker example 建议运行:

 $ 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 错误,will follow these instructions

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

【问题讨论】:

  • 您的 Heroku 帐户是否需要基于 docker 的应用程序?

标签: docker heroku heroku-cli


【解决方案1】:

技术过时了吗?

不,但那个文件是。 heroku-container-registry code 已合并到 main Heroku CLI。你应该可以在不安装任何插件的情况下use it

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

heroku container:login

【讨论】:

  • 这对我也有用,有什么不同吗? heroku plugins:install @heroku-cli/heroku-container-registry
  • @TheRedPea,如果您的 Heroku CLI 是最新的,我认为没有必要这样做。但是对于旧客户端,它可能会起作用(尽管在这种情况下我建议更新 CLI 本身)。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-01-06
  • 1970-01-01
  • 2019-05-12
  • 1970-01-01
  • 1970-01-01
  • 2020-01-11
  • 1970-01-01
相关资源
最近更新 更多