我正在尝试使用以下命令登录到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*
------------------------在登录之前,我已经使用console定义了一个名为'docker‘的空间。
你知道我错过了什么吗?提前感谢!
发布于 2015-11-10 23:42:50
您需要在登录之前设置名称空间(名称空间是您在图像注册表中的区域)。它只做一次。
请在此处查看文档:https://www.ng.bluemix.net/docs/containers/container_cli_ov.html#container_cli_login
如果它没有要求提供名称空间,则意味着您已经拥有它了。然后尝试: containers-api.bluemix_staging_server/v2/containers login -a api.bluemix_staging_server -H ice -R registry.bluemix_staging_server
注意:将bluemix_staging_server更改为您要连接到的正确主机名。
https://stackoverflow.com/questions/33628451
复制相似问题