-
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
Failed to running minikube under lima #14776
Comments
You might need to set the DOCKER_HOST, explicitly. I don't think all clients understand the "context" (yet) But the root cause seems to be stray binary characters in the output from the commands over ssh ? |
We discussed various ways to run under lima, but it is not yet a supported docker platform The default is to just install containerd and kubeadm on the Lima VM directly... (k8s.yaml) It should support running with docker-in-docker too, even rootless, but it is not tested |
It worked ok with lima on Linux, using rootless docker So the docker host (vs context) warnings were not related |
I have tried several patterns and have successfully installed minikube only when the virtual machine architecture is aarch64 and rootful. In the case of x86_64 & rootful, the installation proceeded better than in the other cases but eventually failed.
※ In both cases, DOCKER_HOST is set. |
Could be related to the flaky "user" networking on Mac then (known lima issue...) Can you try with "vde", to see if it helps ? |
It seems to have the same issue as on other platforms, when the Unix socket is not local but tunneled to another machine in secret... It seems to be using 192.168.52.2 for the IP, while Lima wants it to be 127.0.0.1 (tunneled) In the Lima k3s/k8s examples, this is done with Here it is even worse, since it is tunneled again (to the fakenode) |
It might have worked better with |
@afbjorklund If I install vde_vmnet and add the following network settings, will the 'vde' configuration requirements be met? networks:
- lima: host |
Turns out the 192.168.58 was a freak show with minikube deciding that 192.168.49 was in use on the host, and therefore deciding to use 192.168.49 + 9 for the docker network without noticing it was the same network as the Lima VM... Anyway, minikube doesn't work with lima and tunneling sockets. It expects real IPs and TCP sockets, the way it was with For now, you have to run It could be made to work, if there was any interest. But so far, there hasn't been - not from lima, not from kind. So we're doing the "qemu" driver in minikube instead (of lima) |
I realized that the way I tried to run minikube under lima was not the standard way. Thank you. |
It is quite normal, if you try to replace Docker Desktop with Lima (docker). Just not working very well |
What Happened?
I have tried to install minikube on a virtual environment built using lima but it fails.
Environment
Macbook M1
Command
I confirmed that the installation failed as well after running the initialization command (
minikube delete --all --purge
).Attach the log file
log.txt
Operating System
macOS (Default)
Driver
Docker
The text was updated successfully, but these errors were encountered: