-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Kaniko can't pull public images from gcr.io #1122
Comments
@filesnate Thank you for opening this issue. Kaniko uses gooogle/go-container-registry to retrieve images. Can you confirm again ? Meanwhile, we can look into if |
@tejal29 - I shouldn't need any credentials to pull a publically available image.
No credentials are necessary to fetch that image. If I change the image in the Dockerfile to a different publicly available image, it works. Dockerfile:
Now, the command runs fine.
I suspect that having an image name start with |
Also, while I do have a file |
In the kaniko image, there exists the file
If this file is replaced with a blank json file contents of Dockerfile:
config.json:
|
Thanks a lot @filesnate for debugging this. Would you up for submitting a PR to remove credentials helper in from the executor image ? |
Let me see what I can do |
3rd times a charm. I was rushing to get it done, and didn't look closely at the Dockerfile to see how it was being built. |
@tejal29 - Is there anything I need to do at this point to move this forward? PR is submitted and is passing. |
Thank you! |
Actual behavior
Using kaniko to pull and build a kaniko image fails (kaniko is a public image) because it requires credentials.
Expected behavior
I expect kaniko to pull a public image w/out requiring credentials.
To Reproduce
Steps to reproduce the behavior:
Triage Notes for the Maintainers
No
Yes
--cache
flagYes
No
The text was updated successfully, but these errors were encountered: