Comments (4)
What an important note to mention. I think this should be updated in the Googlle Container Registry docs: https://cloud.google.com/sdk/gcloud/reference/auth/configure-docker
from docker-credential-gcr.
I am facing this strange issue in one of my GKE cluster. In the same namespace, 2 pods are running for the same application - both the pods are trying to pull the same image but one is able to successfully pull the image and other one is failing with authentication failure -
Error msg is -
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
Could somebody help me here?
Also all my other pods in a different namespace are running without any issue.
How is it possible that one pod is running without any issue while other one is not having permissions to pull the image? Why GCR is allowing one pod to pull the same image and not the other pod? If I delete the running pod, it sometimes fails with permissions issue and sometimes not.
from docker-credential-gcr.
what OS are you running this from?
from docker-credential-gcr.
However, this is not the case, because the problem was actually that my system was not able to run docker without sudo. And with sudo I was not able to use the gcloud CLI.
I think you could argue that it was the case, because you were acting as the root user, who did not have the needed permissions because you had not configured the root user's credential helper. I'd agree this is confusing, though.
What an important note to mention. I think this should be updated in the Googlle Container Registry docs
The docs on gcr.io mention this: https://cloud.google.com/container-registry/docs/advanced-authentication#:~:text=Note%3A%20If%20you%20normally,auth%20configure-docker%20instead.
from docker-credential-gcr.
Related Issues (20)
- Fix auth test issue
- Handle reauth / invalid_rapt errors more gracefully
- Release versions messed up?
- Non $PATH setup HOT 2
- "Could not retrieve GCR's access token" when using Workload Identity
- OOB OAuth just got turned off HOT 16
- Unable to install a pinned version using `go install` HOT 9
- Seems that Artifact Registry username has changed HOT 3
- Adding an option to extend the life of the token HOT 1
- Output contains invalid Username for AR when installed using normal `go install` HOT 1
- Unable to use binary built from source HOT 1
- Missing version number when running `docker-credential-gcr version`
- Check for either podman or docker in $PATH HOT 2
- Update docker-credential-gcr version in the google cloud sdk install tarball HOT 1
- Use ldflags to set version
- All v2.0.4 binaries have unexpected SHA256 checksums HOT 5
- Crash when used by Kaniko in Google Cloud Build HOT 2
- Wrong version using component install of Cloud sdk HOT 2
- No release artifacts for v2.0.5? HOT 3
- Does this support Identity Federation from external accounts? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-credential-gcr.