我已通过命令ice login
成功登录bluemix容器服务,输出如下:
Authentication with container cloud service at https://api-ice.ng.bluemix.net/v1.0/containers completed successfully
You can issue commands now to the container service
Proceeding to authenticate with the container cloud registry at registry-ice.ng.bluemix.net
Login Succeeded
ice ps -a
同样适用,但在发出ice images
时,它失败了:
$ ice --verbose images
@2015-05-07 13:59:29.221306 - Namespace(cloud=False, local=False, subparser_name='images', verbose=True)
@2015-05-07 13:59:29.221370 - request url: https://api-ice.ng.bluemix.net/v1.0/containers/images/json
@2015-05-07 13:59:30.012412 - Return code: 404 Return reason: NOT FOUND
@2015-05-07 13:59:30.012439 - Req-ID: a382f2f79d54b157
@2015-05-07 13:59:30.012451 - Exit err level = 1
这是命令行版本:
$ ice version
ICE CLI Version : 2.0.1 000 2015-03-26T19:51:27
请注意ice images
上周有效。
服务器端有什么变化吗?
答案 0 :(得分:2)
尝试使用此
登录冰ice login -a https://api.ng.bluemix.net -H https://api-ice.ng.bluemix.net/v2/containers -R registry-ice.ng.bluemix.net
这是我在运行ice --verbose images时得到的结果
bash-3.2$ ice --verbose images
@2015-05-08 14:54:49.692386 - Namespace(cloud=False, local=False, subparser_name='images', verbose=True)
@2015-05-08 14:54:49.692455 - request url: https://api-ice.ng.bluemix.net/v2/containers/images/json
@2015-05-08 14:54:49.692466 - using bearer token and space id
@2015-05-08 14:54:49.692482 - config.json path: /Users/stanli/.cf/config.json
似乎你的冰命令指向了api的v1。
-Stan