我正在尝试使用命令
登录stage1 Bluemix(对于IBMers)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'的空间。
知道我在这里缺少什么吗? 提前谢谢!
答案 0 :(得分:0)
您需要在进行登录之前设置命名空间(命名空间是Images Registry中的区域)。它只做了一次。
点击此处的文档:http://php.net/manual/en/function.strpos.php
如果它没有要求命名空间,则表示您已经拥有它。然后尝试:ice login -a api.bluemix_staging_server -H containers-api.bluemix_staging_server / v2 / containers -R registry.bluemix_staging_server
注意:使用您要连接的正确主机名更改bluemix_staging_server。