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

Minikube (1.32.0) fails to load any image with: minikube image load #18021

Open
jpconver opened this issue Jan 22, 2024 · 17 comments
Open

Minikube (1.32.0) fails to load any image with: minikube image load #18021

jpconver opened this issue Jan 22, 2024 · 17 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@jpconver
Copy link

jpconver commented Jan 22, 2024

What Happened?

Hi!

I've just updated Minikube and I'm not able to load images, even the official images (ie. Ubuntu 22.04)

Environment Info

Docker version 25.0.0, build e758fe5
minikube version: v1.32.0
commit: 8220a6e

Steps to reproduce it

  1. Install Minikube
    minikube start --memory 8192 --cpus 6 --driver=docker

  2. Load image:
    minikube image load ubuntu:22.04

After the execution of the last command the following error appears:

❌ Exiting due to GUEST_IMAGE_LOAD: Failed to load image: save to dir: caching images: caching image "/home/jpconver/.minikube/cache/images/amd64/ubuntu_22.04": write: unable to calculate manifest: blob sha256:84041ef6c694bef320154facfaf9fc00a97bd4258cd48fb3e4feb8968f427acb not found

Note: I have downloaded the image before in my local docker images:

$ docker image ls
REPOSITORY            TAG        IMAGE ID          CREATED        SIZE
ubuntu                22.0       e34e831650c1      11 days ago    77.9MB

Attach the log file

logs.txt
logs2.txt

Operating System

Ubuntu

Driver

Docker

@lb7
Copy link

lb7 commented Jan 22, 2024

I believe this is an issue in Docker 25 which just released on 1/19. My team ran into this as well and downgrading to Docker 24 has worked to resolve this issue for us.

You can install the specific version by following the "specific version" steps on this page https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository

@jpconver
Copy link
Author

I believe this is an issue in Docker 25 which just released on 1/19. My team ran into this as well and downgrading to Docker 24 has worked to resolve this issue for us.

You can install the specific version by following the "specific version" steps on this page https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository

Thanks a lot, you've saved my day!! I installed docker version 24 and now is working like a charm!!

@MrBr-github
Copy link

Same here, roll back to docker 24 resolved the issue
@lb7 thanks a lot

@trolleycrash
Copy link

Confirmed working. Saved my day!

@AkihiroSuda
Copy link
Member

This is an issue of go-containerregistry:

@maksymilian-mulawa-form3

minikube has now updated to v0.19.0 for go-containerregistry. Building minikube from source (prior future v1.33.0 release which will probably include the fix) solved the problem for me on Docker 25.0.1.

Running below build command on macos (M1) produced minikube binary to ./out/minikube-darwin-arm64.

make minikube-darwin-arm64

@medyagh medyagh added kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Feb 5, 2024
@medyagh
Copy link
Member

medyagh commented Feb 5, 2024

this fix would be included in the next minikube version

@imilchev
Copy link
Contributor

what's the status on the releases though? we haven't seen any new releases since end of November

@HGZahn
Copy link

HGZahn commented Feb 20, 2024

As a workaround for getting local images into minikube you can use:

  1. eval $(minikube docker-env) or eval $(minikube podman-env)
  2. docker build -t my_image . or podman-remote build -t my_image .

(enter both commands in the same terminal window)

This is described in the minikube docs and will rebuild the image within minikube.

@lentzi90
Copy link

If you already have the image you can just do

docker image save -o image.tar my_image:tag
minikube image load image.tar

@boratanrikulu
Copy link

If anyone using archlinux is experiencing this issue, you can downgrade your Docker package as follows;

  1. Go to https://archive.archlinux.org/packages/d/docker/
  2. Download latest 1.24 package, for example this one https://archive.archlinux.org/packages/d/docker/docker-1%3A24.0.7-1-x86_64.pkg.tar.zst
  3. Run this command sudo pacman -U <filename>

@humelse
Copy link

humelse commented Mar 22, 2024

If you already have the image you can just do

docker image save -o image.tar my_image:tag
minikube image load image.tar

This works for me. Thanks

@medyagh
Copy link
Member

medyagh commented Mar 27, 2024

the minikube 1.33.0 beta is out and should be fixing this issue, if you like please give it a try
https://minikube.sigs.k8s.io/docs/start/

@pratikparshetti
Copy link

pratikparshetti commented Mar 28, 2024

If you already have the image you can just do

docker image save -o image.tar my_image:tag
minikube image load image.tar

I'm facing issues while enabling ingress addons, and I suspect that its because I'm not able to pull the image from registry as I got the warning - "This container is having trouble accessing https://registry.k8s.io/" when I run minikube start. So I manually pulled the images but added those as well as per your commands but still it did not work.

I had a question -
In my case I had used the command as
docker image save -o image.tar registry.k8s.io/ingress-nginx/controller:v1.9.4
minikube image load image.tar

which loaded the image I assume as I did not got any error. But when I run the command of enabling ingress addons it tried to pull registry.k8s.io/ingress-nginx/controller:v1.9.4 image but how minikube will come to know that this image is nothing but image.tar which is already loaded?

@rayrapetyan
Copy link

rayrapetyan commented Apr 4, 2024

the minikube 1.33.0 beta is out and should be fixing this issue, if you like please give it a try https://minikube.sigs.k8s.io/docs/start/

Initially, it seems to be working fine in version 1.33.0, but it doesn't behave as expected. Basically, the 'image load' works fine the first time, but if there are same images being used in the cluster, further attempts fail without any warning (see #16032)

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 3, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests