使用 heroku 容器时:release -a MyApp web 我收到错误:进程类型已经在运行指定的 docker 镜像

HoC*_*Co_ 4 heroku docker

我正在将 Heroku 与 Docker 一起使用。推送我的图像时:

heroku container:release -a MyApp web 
Run Code Online (Sandbox Code Playgroud)

我的控制台返回:

进程类型 web 未更新,因为它已经在运行指定的 docker 镜像

有人知道这里发生了什么吗?我从来没有在我的应用程序中推送过这个图片。

任何提示都会很棒。

小智 6

在推送之前,您需要构建图像。

所以运行这个命令:

heroku container:push web --app application-name
Run Code Online (Sandbox Code Playgroud)

然后尝试运行

heroku container:release  web --app application-name
Run Code Online (Sandbox Code Playgroud)