无法将图像推送到Openshift(未经授权:需要validation)
我是Openshift和Docker的新手。
我在Openshift上创build了一个新的项目,还创build了一个新的图像stream,所以我可以将我创build的docker镜像推送到我的Openshift项目中的docker仓库中。
在使用dockerlogin到registry后,如在Openshift文档中所述,并获取Login succeded
消息后,我继续标记我的图像,并将其推送到图像stream,只是得到一个消息,说明Unauthorized: authentication required
。
sudo docker login -u `oc whoami` -p `oc whoami -t` registry.starter-us-east-1.openshift.com
sudo docker tag test:latest registry.starter-us-east-1.openshift.com/rolabot/test
sudo docker push registry.starter-us-east-1.openshift.com/rolabot/test
最后一个命令返回
3ea53db680fc: Pushing [==================================================>] 12.8 kB 54f43adb4662: Pushing 1.536 kB 49907af65b0a: Pushing [==================================================>] 3.072 kB 4589f96366e6: Pushing [==================================================>] 5.632 kB b97229212d30: Pushing 14.85 kB cd181336f142: Waiting 0f5ff0cf6a1c: Waiting unauthorized: authentication required
对我来说,这似乎是在上游Dockerregistrycaching的原因。 这似乎是一个小minishift
已知的问题 ,但他们find的补救措施是不可能的(因为你没有必要的权限)在线上的Openshift。 我会打开红帽的新支持票,让他们看看。