-
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
does kaniko support docker registry mirrors ? #406
Comments
i use |
Hello, We are currently hopping support for registry mirrors in kaniko to be able to used it in clients "offline" environnements where all access to public repos are disable but you need to use a registry mirror (artifactory, nexus...). Hopping to see support for this in kaniko !! |
Hey @tblaisot ! Can you explain more about how you would see this working? Would this be a flag you provided when running kaniko that overrides the docker registry in the image name? The most obvious workaround is what you described with |
Hi @bobcatfish, Obviously setting the registry in the FROM is a quick option but this option make the Dockerfile less portable and it make it depend on the network where you build it. Just as kaniko support setting insecure registries, having a command flag to add mirror (in our case one should be enough) would be a must. As in docker daemon, I expect that this flag will make all images without specified registry be pulled from the mirror. But This will allowing us to share source code without having to modify it to use our mirror (we are using it for caching and security reasons). This way it will also be easy to pull from the mirror but push to a private repo by specifying the destination registry in kaniko. By the way having it at runtime is so much better than having it on daemon settings :-) |
I tried adding this to
But it is not used :( any other ideas? |
Closed my issue in favour of this one. This would be really helpful! Using Kaniko in a University env where internet access is restricted. So we have a registry mirror setup. I will see if I can configure kubernetes to use the mirror always. |
New triage. Looks like a good thing to have, marking "Help Wanted" to see if somebody wants to take this on. |
dear maintainers
i use kaniko to build docker image at China mainland,when it download base image, it use docker official registry, the GFW will reset this connection, so, does kaniko support docker registry mirrors ?
thank u
The text was updated successfully, but these errors were encountered: