IBM Bluemix registry push authentication error

2019-05-18 20:02发布

When pushing to the Bluemix registry, I get the following error:

47c2386f248c: Waiting 
2be95f0d8a0c: Waiting 
2df9b8def18a: Waiting 
unauthorized: authentication required

I've got the cs and cr plugins both installed, an have verified Bx is being added to more auths file. Have tried both using OSX keychain as credstore and without.

When I pull the IBMLiberty example from the BX registry, or build an image with Liberty as the base, it does pull without issue.

I'm running:

docker build . -t registry.ng.bluemix.net/my_space/ibm

docker push registry.ng.bluemix.net/my_space/ibm

Have also tried manually exporting BLUEMIX_TRACE=true and re-running the login and init commands.

2条回答
三岁会撩人
2楼-- · 2019-05-18 20:26

It's not clear if you own the namespace my_space can you run bx cr namespaces to see what namespaces you can push to? If need be you can add one with bx cr namespace-add <something unique to you>.

查看更多
beautiful°
3楼-- · 2019-05-18 20:32

Ensure you have logged into the Bluemix Container repository before doing docker push:

$ docker pull registry.ng.bluemix.net/myspace/myimage
Using default tag: latest

Please login prior to pull:
Username (bearer): XXXX
Password:
Error response from daemon: unauthorized: authentication required

$ bx cr login
Logging in to 'registry.ng.bluemix.net'...
Logged in to 'registry.ng.bluemix.net'.

$ docker pull registry.ng.bluemix.net/myspace/myimage:4
4: Pulling from myspace/myimage
7b6bb4652a1b: Downloading [===>                                               ]  5.272MB/70.48MB

See:

$ bx cr login --help
NAME:
   login - Log the local Docker client in to IBM Bluemix Container Registry.

USAGE:
   bx cr login
查看更多
登录 后发表回答