`container:init`不是一个heroku命令
我已经在我的OSX El Capitan(10.11.5)中安装了heroku,并安装了heroku-container-tools:
heroku plugins:install heroku-container-tools
安装成功:
Installing plugin heroku-container-tools... done
当我运行一个英雄版本时,我得到了这个:
heroku-toolbelt/3.42.22 (universal.x86_64-darwin15) ruby/2.0.0 heroku-cli/5.2.20-9d094b0 (darwin-amd64) go1.6.2 === Installed Plugins heroku-container-tools@3.0.0
但是当我运行一个heroku容器时:init我得到这个:
! `container:init` is not a heroku command. ! See `heroku help` for a list of available commands.
运行heroku帮助容器我得到这个:
Usage: heroku container Use Docker to build and deploy Heroku apps Use Docker to build and deploy Heroku apps Additional commands, type "heroku help COMMAND" for more details: container:login # Logs in to the Heroku Docker registry container:push [PROCESS] # Builds, then pushes a Docker image to deploy your Heroku app
我正在关注这个heroku教程: https ://devcenter.heroku.com/articles/local-development-with-docker
据说在教程中运行heroku容器:init
这个命令已被replace,但一些其他和Heroku没有更新他们的文档,或者我有一些问题安装插件?
是的,他们限制访问他们的容器registry,只要阅读教程顶部的警告你正在关注https://devcenter.heroku.com/articles/local-development-with-docker
heroku容器:释放,创build一个Heroku兼容的slu and并将其部署到Heroku,已被弃用。 要访问我们的容器registry(可以使用私人testing版),请联系docker-feedback@heroku.com
现在只有login
和push
命令。 我希望你可以很容易地要求访问。