docker - Heroku:docker deploy 引发未经授权:需要身份验证
问题描述
我正在尝试使用以下步骤将一个简单的 Flask 服务器部署到 Heroku:
heroku login
heroku container:login
# create the app
heroku create myapp-name-2
# create the container with format:
# docker build -t registry.heroku.com/<app name>/<process type> .
docker build -t registry.heroku.com/myapp-name-2/web .
# push the image to the registry
docker push registry.heroku.com/myapp-name-2/web
# "release" the image
heroku container:release --app myapp-name-2 web
# open the app
heroku open --app myapp-name-2
但是,该docker push
步骤显示:
The push refers to repository [registry.heroku.com/myapp-name-2/web]
f60f7a4e2b2a: Preparing
3ff8a98d192e: Preparing
71476851914e: Preparing
013688a141bb: Preparing
f09460ef2908: Preparing
e188a7526d55: Waiting
6b0d56603c0c: Waiting
9496e71377c6: Waiting
5710e17ef032: Waiting
9546672d6b2f: Waiting
f2c194ac8a61: Waiting
2a50ea4f9e8e: Waiting
634249d50b9e: Waiting
68e35493907b: Waiting
e84b9d651af1: Waiting
unauthorized: authentication required
有谁知道我应该如何进行身份验证?我现在已经多次运行heroku login
and步骤,但一定是遗漏了一些东西!heroku container:login
解决方案
我也发生了同样的错误。我刚刚运行了下面的命令并且它起作用了。
heroku container:login
推荐阅读
- java - LibGDX 更改我的 ScrollPane 的起始位置
- android - Android提示问题xml
- python - 在不使用列名的情况下绘制列
- aframe - Vimeo Aframe 你能给我看一个播放暂停按钮的例子吗?
- delphi - 使用抗锯齿调整 TImageList 中的图像大小
- c++ - OpenCL POCL + asan 或 valgrind
- c# - 我在 C#(Windows 窗体)中的反应时间测试有问题
- php - WordPress 条件后循环
- javascript - 在我的 html 页面上添加阅读更多内容会产生奇怪的行为
- javascript - Paypal 按钮返回“无法捕获订单”