-
Notifications
You must be signed in to change notification settings - Fork 116
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
"Kubernetes is starting" indefinitely on macOS Mojave #3327
Comments
same issue for me |
1 similar comment
same issue for me |
I have the same issue, almost exactly. I posted it yesterday 11/27/2018. But in addition, I can't turn Enable Kupernetes off. I can uncheck the box, but it keeps getting rechecked somehow. Not even reseting Kupernetes will make it stop. |
same issue for me |
1 similar comment
same issue for me |
I fixed it. BriefAdd the following lines in
Details:
It means, it cannot resolve
Oops! it is empty.
🎉 It works. k8s is now up and running with docker-for-mac. |
Facing the same issue. Apparently, the fix above doesn't apply in my case. I already have entries in And here are the entries from /etc/hosts.
|
same issue for me |
Also have the same issue...
|
I have the latest version exact screenshot posted by @bitzhuxb still the same issue. |
duplicated issue with #2990 |
These steps worked:
then:
and finally:
Not sure whether all were required... I also took info from here |
This works. Some times I've found it's also because the Docker disk image is running low on space. I ran this and "Reset Kubernetes cluster" (as mentioned above): # Remove all exited Docker containers (note: you might still want some of them so feel free to double check with docker ps -a)
docker rm -v $(docker ps -aq -f 'status=exited')
# Remove unused images
docker image prune |
Also experiencing this issue, but none of the proposed fixes here have worked. Executing this from one of the earlier posts:
Reveals errors like this repeating ad nauseam:
So it looks like some kind of DNS problem, maybe? My
|
I'm in the same boat as noctune - nothing worked so far, and I have the same log output about a missing DNS record and 'Cannot list nodes'. |
Try to update the hosts file so that it resolves docker-for-desktop to localhost, try adding it like so: 127.0.0.1 localhost docker-for-desktop |
Fix didn't work for me either, but switching to edge did (version 2.0.5.0) |
Same experience for me - nothing worked until I switched to edge. |
rm -rf ~/.kube |
How I solved my Issue: 0. Open terminal and follow up the logs of Docker for Desktop:
1. Uninstalled Kubernetes from Docker Preferences Panel (if present)
4. Reinstall Kubernetes from Docker Preferences Panel 5. Restart Docker Desktop
6. After services running (Docker and Kubernetes), try access the API:
|
For me, this was not Mac-specific. It was impacting me on a Windows laptop as well, following the most recent upgrade. Based on the fact that it resolved itself after working outside the corporate firewall and disconnected from the VPN for a few days, I believe that in my case, it was a firewall issue. Our corporate firewall apparently wasn't allowing Docker to pull the Kubernetes images (I discovered this by accident). After returning to the office, I was able to test the following workaround, which worked for me:
Once Kubernetes was running, it continued to run, even when reconnected to the corporate network again. I don't know whether I'll have to repeat this after my next update or not. |
I had a similar problem above. My issue is that I am using a app to manage my hosts file called gasmask. It prevents external applications from modifying the hosts file. Once disabled, I reset docker, and re-eneabled kubernetes. I notices this now shows in my hosts file and everything started fine. Hope this helps someone else.
|
I had a similar issue. I ran diagnostics (available in the troubleshoot menu). From there in the log file, I can see the error : "Error while setting up kubernetes: cannot update the host kube config: open /Users//.kube/config.lock: permission denied". |
I had issue with 2.2.0.3 (42716) and OSX Catalina. Turns out that somehow my /etc/hosts was corrupt with a bunch of garbage unprintable characters just before the section:
Deleting the garbage fixed the issue for me. |
Hitting "Reset Kubernetes cluster" on the Reset tab (under preferences) worked for me on Catalina |
Am I the only one for whom none of the above methods worked? :'( |
As per #3649 (comment) , deleting the pki folder fixed this issue
|
Finally the following worked:
|
This thread worked like a charm 👍 |
there is an easy way to fix it and it really helps. |
for me, uninstall docker in install last version |
Update kubernetesEnabled to false in |
This solution worked for me after I've changed Environment: |
Uninstalling Docker and installing the latest version was the only trick that worked for me. |
Can get it to work. |
I had this issue and after trying a few advices in this thread and a few of my own fiddlings, I fixed it. I'll list everything I tried in case this helps people browsing through google, or in case my extra tweaks were the fix.
If I tried anything else, I can't remember it. So whether the fix was the first, second or third thing, I'm not sure, but if anybody is still having issues after deleting the pki folder and double-checking |
I was able to solve it by adding the following to hosts When I checked the log along here , it seems that there was a problem with the above name resolution. My version |
This works for me too |
Please check the logs in below location. see the error and try to resolve the issue. In my case it said so updated /etc/hosts file with "127.0.0.1 kubernetes.docker.internal" then it gave other error again , updated hosts file with "127.0.0.1 docker-desktop" So, now my kubernetes on docker desktop :-) |
I updated Docker via the update Docker notification on my macOS mojave - but Starting kubernetes is still stuck at starting. |
Issues go stale after 90 days of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Kuberntes should be in running state once I select my context as "docker-for-desktop" from the dropdown
Actual behavior
Its hung in "Kubernetes is starting" forever.
Information
Diagnostic logs
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: