Daniil Shevelev
Daniil Shevelev

Reputation: 12027

Cannot create and run Bluemix container, Unathorized

I followed the official instructions and also double checked with these instructions.
1. I authenticated using
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys myKey command.
2. I was able to push using
sudo ice --local push registry-ice.ng.bluemix.net/myAccount/myApp.

However when I try to create and run the container I get the following error:

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...

I also get the same error when running this commands:

sudo ice ps
sudo ice images

UPDATE 1: When I have container running I get following error:

:~$ sudo ice ip request
Target is container cloud. Invoking cloud service...
Command failed with container cloud service
Error requesting new floating ip

While ice ip list returns a list of 2 IP addresses.

Upvotes: 0

Views: 295

Answers (2)

Jeff Sloyer
Jeff Sloyer

Reputation: 4964

Did you run ice login? ​

sudo ice login -k  077179b63616a6d052233dfe2ca66952e77ef0ee1de1a5fd \
-H https://api-ice.ng.bluemix.net/v1.0/containers \
-R registry-ice.ng.bluemix.net

After that you should be able to run sudo ice images.

Upvotes: 2

Jeff Sloyer
Jeff Sloyer

Reputation: 4964

There currently is an issue with the ice ip request command that returns an error code when infact the command it worked. Run ice ip list and it will show you your IP's. We are working on a fix for the erroneous error code.

Upvotes: 1

Related Questions