New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error pulling images, unauthorized #336
Comments
@diit Did you authenticate your docker to gcr? |
@diit any update here? Can you try running with |
Ran into the same issue today and found out that the issue is coming from kubectl deployment and due to the image you are using is not publicly accessible. Follow the instruction here at Serving images publicly should resolve your issue as it did for me. |
Closing as this doesn't seem to be strictly related to Skaffold |
Hey i have this issue aswell, I have local kubernetes cluster and when i try to pull the image with docker pull gcr;//xx.xx.xx it works but when i try to create a deployment in kubernetes it gives the error, besides gcloud auth configure-docker i also tried with configuring secrets with json file this is my deployment configuration
has anybody have any idea |
yes, I think this is a skaffold issue since these images can be pulled with |
We're experiencing the same issue. Has anyone found a viable solution to this? |
I had the same issue, and upgrading from |
For anyone running into this issue on a Docker-optimized OS: I also had this issue, and it was due to me messing around with permissions for the "Compute Engine default service account" on IAM. By default, the service account has "Editor" permissions, and you may see this error if you revoke whatever permission gave the service account access to pull from the registry. |
Hi all, |
Don't know if this is related, but I saw the problem when I ran the commands under |
Issues without logs and details are more complicated to fix.
Please help us!
Expected behavior
Actual behavior
Failed to pull image "gcr.io/xx/yy:latest": rpc error: code = Unknown desc = Error response from daemon: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication
Information
I have run
gcloud docker -a
as well as can pull image locally with no issue.Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: