IBM Bluemix注册表推送身份验证错误

时间:2017-07-10 17:11:21

标签: ibm-cloud container-registry

当推送到Bluemix注册表时,我收到以下错误:

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

我已经安装了cscr个插件,已经验证了Bx被添加到更多auths文件中。尝试过使用OSX keychain作为信任库而没有。

当我从BX注册表中提取IBMLiberty示例,或者以Liberty为基础构建图像时,它确实会毫无问题地提取。

我正在跑步:

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

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

还尝试手动导出BLUEMIX_TRACE=true并重新运行login和init命令。

2 个答案:

答案 0 :(得分:1)

确保在执行docker push之前已登录Bluemix Container存储库:

$ 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

请参阅:

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

USAGE:
   bx cr login

答案 1 :(得分:1)

目前尚不清楚您是否拥有名称空间my_space是否可以运行bx cr namespaces来查看可以推送的名称空间?如果需要,您可以添加bx cr namespace-add <something unique to you>