-
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
Very long timeout when pushing to HTTP registries #1013
Comments
I'm experiencing the same issue pushing to a Gitlab container registry |
@haampie and @astefanutti kaniko uses go-container registry to push to registry. |
@tejal29, we've been able to pinpoint the cause at the level of the go-containerregistry library. Thanks to @nicolaferraro, he's created google/go-containerregistry#715 that should fix this issue. |
Actual behavior
The build is taking a long time. It seems the image upload to a local Docker registry is very slow, compared to a traditional Docker push for the same image. It gets even worse as the image size increases.
This follows up #970. As mentioned by @nicolaferraro, the last log statement is about snapshotting, and there is no other information about what Kaniko is performing afterwards. So this issue attempts at providing a reproducible use case, that indicates most of the build time is taken during the image uploading.
This reproduces as well with Minikube, that has a similar setup.
Expected behavior
The image upload time should not take forever with a local registry, and not be an order of magnitude slower than a Docker push.
To Reproduce
Steps to reproduce the behavior:
On the other hand:
Additional Information
Dockerfile
Build Context:
No additional context
Kaniko Image (fully qualified with digest)
gcr.io/kaniko-project/executor:v0.16.0
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: