-
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
Warmer does not work with private images #503
Comments
I'm using gitlab ci and in order to configure docker it actually requires a shell. |
#497 should allow to setup the credentials prior to warming up the cache. |
I have built a debug kaniko image with the warmer inside of it, and I can verify what @jamesatha said, I try to pull the images with the docker config setup (that works with kaniko), but it silently fails when trying to pull a image from a private repo. |
I also confirm that even when using #497, it still does not work with gitlab ci private registry :( |
same issue here, using debug image in combination with gitlab and warmer fails to pull private images, even though GOOGLE_APPLICATION_CREDENTIALS environment variable is configured and exported:
|
Confirmed. My workaround:
|
@priyawadhwa please tag as issue/bug. This isn't documented behavior. Our build pipeline have several layers of caching partial images, because building from scratch taking tens of minutes. After migrating from dind to kaniko, for some modules build process broke out. |
Hey @Enelar I've tagged the issue. It looks like this is happening because we try to pull the image without credentials. We should be checking for credentials, as we do in the executor here. If anyone is interested in submitting a PR, feel free to cc me and I can take a look at it. |
Relate to GoogleContainerTools#503 The warmer should call for credential for pull the image from any registry.
Closes GoogleContainerTools#503 Signed-off-by: Stijn De Haes <[email protected]>
Closes GoogleContainerTools#503 Signed-off-by: Stijn De Haes <[email protected]>
Closes GoogleContainerTools#503 Signed-off-by: Stijn De Haes <[email protected]>
Closes GoogleContainerTools#503 Signed-off-by: Stijn De Haes <[email protected]>
Actual behavior
I have a pod running the cache warmer. It has multiple --image arguments. The public images download just fine but the rest silently fail. I have made sure the docker config is mounted at /kaniko/.docker/config.json and the DOCKER_CONFIG environment variable is set to /kaniko/.docker/
Expected behavior
Should use the credentials specified to download the private image.
To Reproduce
Steps to reproduce the behavior:
Additional Information
Using gcr.io/kaniko-project/warmer:latest
The text was updated successfully, but these errors were encountered: