Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Login Ice名称空间错误_Login_Namespaces_Docker_Ibm Cloud_Ice - Fatal编程技术网

Login Ice名称空间错误

Login Ice名称空间错误,login,namespaces,docker,ibm-cloud,ice,Login,Namespaces,Docker,Ibm Cloud,Ice,我正在尝试使用以下命令登录stage1 Bluemix(适用于IBM人员): ice --verbose login --user username --psswd password --registry 'registry-ice.bluemix_staging_server' 调用后,系统会提示: Namespace(api_key=None, api_url=None, cf=False, cloud=False, host=None, local=False, org=None,

我正在尝试使用以下命令登录stage1 Bluemix(适用于IBM人员):

ice --verbose login --user username --psswd password  --registry 'registry-ice.bluemix_staging_server'
调用后,系统会提示:

 Namespace(api_key=None, api_url=None, cf=False, cloud=False, host=None, local=False, org=None, psswd='password', reg_host='registry-ice.bluemix_staging_server', skip_docker=False, space=None, subparser_name='login', user='username', verbose=True)
    Executing: cf login -u username -p password -a https://api.bluemix_staging_server
    API endpoint: https://api.bluemix_staging_server
    Authenticating...
    OK

Targeted org 'user org'

Select a space (or press enter to skip):
1. dev
2. docker
一旦我选择了
dev
docker
我就会得到以下错误:

 ------------------------
*Error response from daemon: Login: You must set a namespace before you login to the registry.  See 'ice help namespace' (Code: 404; Headers: map[Server:[nginx] Date:[Tue, 10 Nov 2015 10:54:06 GMT] Content-Type:[text/plain] Content-Length:[84] Connection:[keep-alive]])
docker is not available on your system or is not properly configured
Could not authenticate with cloud registry at registry-ice.bluemix_staging_server
You can still use IBM Containers but will not be able to run local docker containers, push, or pull images*
 ------------------------
我在登录之前使用控制台定义了一个名为“docker”的空间

你知道我错过了什么吗?
提前谢谢

您需要在登录之前设置名称空间(名称空间是您在Images注册表中的区域)。只做一次

检查此处的文档:


如果它不要求名称空间,则表示您已经有了名称空间。然后尝试:ice登录-a api.bluemix_staging_server-H containers-api.bluemix_staging_server/v2/containers-R registry.bluemix_staging_server


注意:按您连接的正确主机名更改bluemix_staging_服务器。

谢谢您的回答,我在执行登录之前已尝试调用“ice命名空间集开发”。这没有帮助:(实际上我在设置名称空间时遇到了en错误:------------------------------------:~#ice名称空间设置docker命令失败,容器云服务{“代码”:“IC5101E”,“描述”:“Org 6943da47-84c7-4fe3-b375-9ba220bfcb8b已经定义了名称空间:kafka”,“事件id”:“deec2301d6c3941d”,“名称”:“NamespaceAlreadyAssigned”,“rc:“409”,“type:“Infrastructure”}尝试通过浏览器连接到Bluemix仪表板。转到目录并选择“创建您自己的容器”。如果名称空间不存在,您应该会看到一个询问名称空间的对话框。然后,返回命令行。谢谢Jose,我看到了一个带有标题的窗口”将自定义映像添加到IBM容器注册表中的私有命名空间。“然后采取的操作顺序:---------------下载并安装Docker CLI、CloudFoundry CLI和ibm containers cf CLI插件。登录到Bluemix:cf login运行ibm containers cf CLI插件。cf ic login….--------------没有对话框,这些命令是否替换了对话框?”?(我应该执行上面描述的步骤)?非常感谢您的帮助!如果它不要求名称空间,则表示您已经有了名称空间。然后尝试:ice登录-a api.bluemix_staging_server-H containers-api.bluemix_staging_server/v2/containers-R registry.bluemix_staging_server