2017-08-31 183 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命令。

相關問題