I need help how to switch from image registry server from docker.io to quay.io. My cases is I pull centos image from hub.docker.com and I want to push it to quay.io. I have login to my quay.io but when I try to push to quay like this shell that was not working. Here are my step to switch to quay.io:
- Create quay repository MYUSERNAME/centos
- Logout from docker.io
# docker logout docker.io
- Login to quay.io
# docker login quay.io
- I fill the credential
- I create new tag
# docker tag IMAGEID MYUSERNAME/centos:7
- I push my image to quay
# docker push MYUSERNAME/centos:7
Here is output I got for the last shell command:
The push refers to repository [docker.io/MYUSERNAME/centos]
2653d992f4ef: Preparing
denied: requested access to the resource is denied
I can see that registry image server still pointed to docker.io.
How to solve this? Thank you.