Reputation: 643
I'm new to Openshift and Docker.
I created a new project on Openshift, and a new image stream as well so I can push a docker image I created to the docker repository inside my Openshift project.
After login in with docker to the registry as explained in the Openshift documentation, and getting a Login succeded
message, I went ahead to tag my image, and push it to the image stream, only to get a message stating 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
This last command returns
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
Upvotes: 3
Views: 4641
Reputation: 4419
To me, it seems like this is an issue with the upstream Docker Registry cache in Origin. This seems to be a known issue in minishift
, but the remedies they have found are not possible (as you don't have the necessary permissions) on Openshift Online. I would open a new support ticket with Red Hat, so that they can take a look.
Upvotes: 1