【发布时间】:2018-11-20 04:08:25
【问题描述】:
我想将现有的 Docker 映像部署到 Heroku,本地目录中没有 Dockerfile。 (我使用数据集创建了 Docker foo:bar 镜像,我不知道它把 Docker 镜像放在哪里)。
这些是我可用的 Docker 映像:
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
foo bar d41xxxc69862 About an hour ago 1.08GB
<none> <none> af079eb9ceda About an hour ago 980MB
我想将第一个 docker 镜像 (foo:bar) 部署到 Heroku。
我试过heroku create my-app-12355,然后:
heroku container:push web -a my-app-12355
但这给了我:
▸ No images to push
如何指定图片的名称?我认为the section on "Building and pushing images" in the documentation是我需要的,但我不明白“app”和“process-type”应该是什么。
更新:我试过了:
docker tag d41xxxc69862 registry.heroku.com/my-app-12355/web
docker push registry.heroku.com/my-app-12355/web
但是当我做heroku container:push web -a my-app-12355 时,我仍然得到No images to push。如何告诉它图片在哪里?
【问题讨论】: