-
Notifications
You must be signed in to change notification settings - Fork 564
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
Can auth and pull image locally, but not on dev servers #1002
Comments
Do you not need to set username, password and registry to make it compatible with |
@Arpit529Srivastava thanks for taking initiative. I don't have permissions to assign I believe. |
@Arpit529Srivastava go for it. I believe the hacktoberfest-accepted label needs to be applied to the PR, but please let me know if that's wrong and I can add it |
@fsouza thanks |
I am pulling from a private GCR registry which needs to be granted permissions via GCP IAM:
Get authentication token:
Then use the token and do a pull:
What's fascinating is that on my local machine (OSX), it works fine and I can even exec into the container without issues.
However, when I build for Linux via:
And I run it on my Linux servers, I get:
I am quite puzzled by this error message. I have done login via
gcloud auth print-access-token | docker login -u oauth2accesstoken --password-stdin gcr.io
. I wonder if it has anything to do with the v2 versioning?Here is the
~/.docker/config
for both environments:The text was updated successfully, but these errors were encountered: