kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.49k stars 4.89k forks source link

Minikube Won't start on M3 mackbook #19960

Open ivgenyr opened 2 days ago

ivgenyr commented 2 days ago

What Happened?

When trying to run a minikube cluster, i end up with the following error:

minikube start --driver=docker --container-runtime=containerd --docker-opt="platform=linux/arm64"
šŸ˜„  minikube v1.34.0 on Darwin 14.7 (arm64)
āœØ  Using the docker driver based on user configuration
šŸ“Œ  Using Docker Desktop driver with root privileges
šŸ‘  Starting "minikube" primary control-plane node in "minikube" cluster
šŸšœ  Pulling base image v0.0.45 ...
šŸ”„  Creating docker container (CPUs=2, Memory=7789MB) ...
šŸ¤¦  StartHost failed, but will try again: creating host: create: creating: setting up container node: preparing volume for minikube container: docker run --rm --name minikube-preload-sidecar --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --entrypoint /usr/bin/test -v minikube:/var gcr.io/k8s-minikube/kicbase:v0.0.45@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85 -d /var/lib: exit status 125
stdout:

stderr:
Unable to find image 'gcr.io/k8s-minikube/kicbase:v0.0.45@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85' locally
gcr.io/k8s-minikube/kicbase@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85: Pulling from k8s-minikube/kicbase
70b0e931bdc1: Pulling fs layer
70b0e931bdc1: Verifying Checksum
70b0e931bdc1: Download complete
70b0e931bdc1: Pull complete
Digest: sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85
docker: cannot overwrite digest sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85.
See 'docker run --help'.

šŸ¤·  docker "minikube" container is missing, will recreate.
šŸ”„  Creating docker container (CPUs=2, Memory=7789MB) ...
šŸ˜æ  Failed to start docker container. Running "minikube delete" may fix it: recreate: creating host: create: creating: setting up container node: preparing volume for minikube container: docker run --rm --name minikube-preload-sidecar --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --entrypoint /usr/bin/test -v minikube:/var gcr.io/k8s-minikube/kicbase:v0.0.45@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85 -d /var/lib: exit status 125
stdout:

stderr:
Unable to find image 'gcr.io/k8s-minikube/kicbase:v0.0.45@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85' locally
gcr.io/k8s-minikube/kicbase@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85: Pulling from k8s-minikube/kicbase
Digest: sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85
docker: cannot overwrite digest sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85.
See 'docker run --help'.

āŒ  Exiting due to GUEST_PROVISION: error provisioning guest: Failed to start host: recreate: creating host: create: creating: setting up container node: preparing volume for minikube container: docker run --rm --name minikube-preload-sidecar --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --entrypoint /usr/bin/test -v minikube:/var gcr.io/k8s-minikube/kicbase:v0.0.45@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85 -d /var/lib: exit status 125
stdout:

stderr:
Unable to find image 'gcr.io/k8s-minikube/kicbase:v0.0.45@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85' locally
gcr.io/k8s-minikube/kicbase@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85: Pulling from k8s-minikube/kicbase
Digest: sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85
docker: cannot overwrite digest sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85.
See 'docker run --help'.

Attach the log file

Unable to dump logs:

Exiting due to GUEST_STATUS: Unable to get control-plane node minikube host status: state: unknown state "minikube": docker container inspect minikube --format={{.State.Status}}: exit status 1

Operating System

macOS (Default)

Driver

Docker

AmarNathChary commented 1 day ago

docker: cannot overwrite digest sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85.

In my opinion this suggests Docker may have cached the image or is encountering a conflict when trying to pull the specified image digest.

AmarNathChary commented 1 day ago

Try remove the conflicting cached image and try pulling it again.

AmarNathChary commented 1 day ago

also try delete any existing Minikube setup and start a fresh instance. this might resolve issue

merlixelastic commented 8 hours ago

I'm facing this error too very recently