Skip to content
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

Cache also pushes #82

Open
mitar opened this issue Mar 10, 2021 · 1 comment
Open

Cache also pushes #82

mitar opened this issue Mar 10, 2021 · 1 comment

Comments

@mitar
Copy link

mitar commented Mar 10, 2021

Inside our CI environment, we use Kaniko to build Docker images. Kaniko support caching by pushing Docker image layers to a Docker registry. We use docker-registry-proxy for Docker caching inside our CI environment. It works great for pulls, but ideally to optimize Kaniko builds, it would work better if when Kaniko pushes its cached layer to a Docker registry (through docker-registry-proxy), docker-registry-proxy would cache it, and then the next time Kaniko could access it immediately though docker-registry-proxy. Now, caching using docker-registry-proxy comes into the effect only the second time Kaniko needs the layer in some future build.

@rpardini
Copy link
Owner

This being an nginx caching proxy, there is no way we can cache anything during push without contorting it beyond useless.

Suggestion: something like https://docs.docker.com/registry/deploying/ for a real registry which stores layers that Kaniko calls "cache". it supports multiple storage backends, has some management, support etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants