我遵循了official instructions,并再次对these instructions进行了检查。
1.我使用进行了身份验证sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys myKey
命令。
2.我能够 push 使用sudo ice --local push registry-ice.ng.bluemix.net/myAccount/myApp
。
但是,当我尝试创建并运行容器时,出现以下错误:
user@comp:~$ sudo ice run --name myApp registry-ice.ng.bluemix.net/myAccount/myApp:latest
Target is container cloud. Invoking cloud service...
Command failed with container cloud service
Unauthorized... Try to login again...
运行此命令时,我也会收到相同的错误:
sudo ice ps
sudo ice images
更新1:
当我运行容器时,出现以下错误:
:~$ sudo ice ip request
Target is container cloud. Invoking cloud service...
Command failed with container cloud service
Error requesting new floating ip
而
ice ip list
返回2个IP地址的列表。
最佳答案
您是否进行过冰登录?
sudo ice login -k 077179b63616a6d052233dfe2ca66952e77ef0ee1de1a5fd \
-H https://api-ice.ng.bluemix.net/v1.0/containers \
-R registry-ice.ng.bluemix.net
之后,您应该可以运行
sudo ice images
。
关于cloud - 无法创建和运行未经授权的Bluemix容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28175481/