2017-08-31 26 views
0

我的目标是使用Bluemix CLI创建容器群集的脚本。我运行的命令是:创建Bluemix CLI群集时发生E0126错误

$ bx cs cluster-create --name mycluster --workers 1 

这些消息,我回去是:

Creating cluster... 
The machine-type flag was not specified. So free cluster will be created 
FAILED 

Your Bluemix space must be specified. If you are using the API, include the headers 
X-Auth-Resource-Space header. To get the list of orgs run 'bx iam orgs'. To get the 
list of spaces run 'bx iam spaces'. (E0126) 
Incident ID: 421d4577-4873-433d-adff-a870fe0983a3 

我在哪里卡住/困惑的是,该消息似乎是说,我指定我Bluemix空间,但有不是此命令中指定空间的选项。

回答

1

答案是必须使用单独的命令来指定组织和空间。具体做法是:

$ bx target -o <yourOrganization> -s <yourSpace> 

您可以登录到使用CLI bluemix后发现这些值命令:

$ bx iam orgs 

$ bx iam spaces 

一旦运行bx target命令,你可以重新运行bx cs create-cluster命令。

相关问题