Comments (6)
Ah, yeah, the Homebrew package is an unsupported community effort.
I'd try removing the brew version and using the supported installation: https://cloud.google.com/sdk/docs/quickstart-macos
from docker-credential-gcr.
Did you install gcloud
in the same session? You might have to restart your terminal before gcloud's component bin directory gets included on your system PATH
from docker-credential-gcr.
I installed gcloud with brew and then tried to install this cli. Restarted session etc and its still not on path.
from docker-credential-gcr.
thanks! That worked.
Edited
I'll open an issue in the brew repo since that was the problem. Or how the gcloud cli installed the docker-credential-gcr after the brew install.
I can open a new issue but I'm now confused. I have a few #images in the gcr.
I ran docker-credential-gcr configure-docker, docker-credential-gcr gcr-login
I then deleted my k8s deployment and recreated it. But I get permission issues (ImagePullBackOff).
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
This puts me back where I started.
The pods started ok when the gcr was public but we want to keep it private. Are there some specific steps I'm missing or permissions I need to add to allow k8s to pull on my behalf?
I am logged into gcloud. I have our specific project set.
from docker-credential-gcr.
Are you using GKE? If so, you'll need to make sure that the nodes' service account has the Storage Object Viewer
role in the project where your images are hosted, and that its configured with Storage reader scopes when the cluster is created (both the service account and the scopes can be seen in the advanced options during cluster creation in the cloud console).
Otherwise, you'll have to give your cluster ImagePullSecrets: http://docs.heptio.com/content/private-registries/pr-gcr.html
from docker-credential-gcr.
thanks the second option in that doc worked great!
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.