将现有Docker映像部署到Heroku [英] Deploy Existing Docker Image To Heroku
本文介绍了将现有Docker映像部署到Heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法将现有的docker映像部署到Heroku.
I am unable to deploy an existing docker image to Heroku.
图片
docker run -it --name xp-home enonic/xp-home
docker run -d -p 8080:8080 --volumes-from xp-home --name xp-app enonic/xp-app
我采取的步骤.
heroku login
sudo heroku container:login
sudo docker tag dpd-image registry.heroku.com/hidden-mountain-63983/web
sudo docker push registry.heroku.com/hidden-mountain-63983/web
heroku open -a hidden-mountain-63983
我在这里做什么错了?
提前谢谢
推荐答案
我将为可能有相同问题的其他人回答.
I'll answer this for others that might have the same question.
根据 Heroku容器注册表&运行时(Docker Deploys)文档,您需要释放该映像.就您而言
As per the Heroku Container Registry & Runtime (Docker Deploys) documentation, you need to release the image. In your case
heroku container:release registry.heroku.com/hidden-mountain-63983/web
这篇关于将现有Docker映像部署到Heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文