-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Save kic base image to cache on --download-only if docker isn't running #8366
Comments
I don't think that it is loaded from the cache either, so maybe do something like #7766 We also have a timeout-and-crash situation, with the podman driver on a slow connection. It would be great if this new caching solution also works with podman, not only docker... |
Thanks @afbjorklund ! I'll probably do exactly what you described in #7766 to verify both tag & digest from the loaded image. I'm guessing there's an analogous command to |
This particular issue also came up on Slack by someone who noted that our guidance on https://minikube.sigs.k8s.io/docs/handbook/offline/ does not currently work for Docker users, because it wasn't trying to load kicbase from the local cache directory. |
Yeah, it is The main issue with either command is that they do not preserve digests, as noted in the issue. Most likely we should keep these system containers outside of the image cache ? Next to the iso. Currently they are about the same size (iso/base).
There's a lot (30%) to save on better compression.
But I guess using gzip is still smaller than e.g. lz4. |
@afbjorklund thanks! I just opened #8417, which should make it easier to load an image into podman once merged (I included a TODO about that in the PR)
I kept the image in the image cache just to take advantage of the existing code for saving images to the cache. I personally don't mind having it there, since we have an explicit list of images that we try to load inside the container so it shouldn't end up in minikube. I ended up stripping the digest, so both podman/docker should be the same now. The digest is still verified though, as it's included in the name of the tarball. It would be great to improve the compression of the image tarball, but doesn't that assume that all users have a certain compressor installed (gzip, pixz etc)? |
Right now, if we run
it fails if docker is not running.
We should be able to download all required artifacts even if docker is not yet up. If we detect that docker isn't running, we should save the kic base image as a tarball in the minikube cache and load it if it's there on
minikube start
This way we still download all required artifacts when
--download-only
is passed in.The text was updated successfully, but these errors were encountered: