-
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
"minikube image save" is extremely slow #13132
Comments
Hi @Pictor13, thanks for reporting your issue with minikube! Curious, how big is the image you're trying to save? |
The image size is ~3.77GB 🙁 |
I just tried myself but on a different setup, I did it on Linux using the Docker driver
How long was yours taking to complete? |
Yes. It will save a local copy on the VM, before transfering. A local registry is probably the easiest solution. |
Just retag the image after loading or pulling it. You could also set your registry up as a pull-through cache. |
@afbjorklund could the pull-through cache spare me from re-tagging the images? I used to run a local registry on Minikube, as cache (ideal for travelling & no connection); but I couldn't make it "transparent": I wanted to |
I don't have an exact benchmark, but the saving was taking some 10-20 minutes. And the loading 5-10 minutes. Thanks for the benchmark @spowelljr, tho. I'm not sure if the different engine & OS could cause such difference. |
The registry might be hard-coded to only proxy the "default" (docker.io) https://docs.docker.com/registry/recipes/mirror/ If you run with a higher log-level, you can see the actual commands... e.g. We couldn't do this in the general API, because every CRI is "special" |
A separate data disk would have helped with extreme (GB) cases like this one... You can do it manually, with VirtualBox. Create a second disk, and attach it to the VM. Then you can keep your disk between clusters, and save and load the image from there ? |
@Pictor13
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Hi @Pictor13 – is this issue still occurring? Are additional details available? If so, please feel free to re-open the issue by commenting with Additional information that may be helpful:
Thank you for sharing your experience! |
/reopen I am observing the same issue.
|
/reopen |
@cerebrotecnologico: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What Happened?
I'm trying to backup (over local host) some docker images that take hours to build (not images of mine; I have no way to reduce that).
This because I want to
minikube delete
and then restore everything, removing the re-build time.Running
works......
...but takes so long to complete.
Is the command supposed to be that slow?
Should I expect the same slowness also when putting the images back with
minikube image load
?The whole reason I was trying to backup & restore images, was to be able to delete the VM and come back to productivity quickly.
But with these timings the strategy doesn't really serve, and I might well delete and rebuild everything from scratch.
Am I doing something wrong?
How can I take the images out of Minikube to restore them afterwards? (in decent times)
Additionally:
Attach the log file
[log contains too much private data; and is not relevant here: eventually ask for specific info from it]
Operating System
macOS (Default)
Driver
VirtualBox
The text was updated successfully, but these errors were encountered: