-
Notifications
You must be signed in to change notification settings - Fork 542
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
Requires authentication even for public registries #666
Comments
Seems like you've configured a credential helper in ~/.docker/config.json (or $DOCKER_CONFIG) but it isn't set up properly. We do eagerly get credentials for a registry, which is the cause of this error. If we deferred fetching creds until we actually got a 401, we could avoid this... which is definitely something we should do. |
@samos123, i ended up removing
|
interesting then it must be something in Kaniko that we're doing incorrectly in relation to this library. Since on Travis CI, i did not configure the gcloud docker credential helper but it would still fail with a similar message that authentication with gcloud was needed. |
Thanks a lot @filesnate for debugging this. Would you up for submitting a PR to remove credentials helper in from the executor image ? |
This issue is stale because it has been open for 90 days with no |
Currently when using a public image from GCR it will fail with trying to authenticate with Google Cloud. However for public images that shouldn't be needed.
Steps to reproduce:
mv ~/.config/gcloud{,.bak}
Current result:
Failure telling you to authenticate with google cloud
Expected result:
Successfully pull down the image
The text was updated successfully, but these errors were encountered: