Kubernetes fails to start when Docker Desktop starts, requires restart
I’ve searched and looked through active issues but wasn’t able to find any similar posts.
When I first start Docker Desktop the Kubernetes indicator stays yellow for a long time and finally fails to start, turning red.
Restarting Docker Desktop usually resolves the issue and then k8s runs fine after that.
I can’t seem to find any logs or error messages indicating why. I’m on Windows 11 with WSL2.
to solve this problem I went to the office docker website to find the solution, some guy posted some fixs below:
run Windows Task Manager to end-task Docker Desktop uninstall ‘Ubuntu’ which is version 22.04.X in Windows installed apps run ‘wsl -l -v’ to look at existing status run ‘wsl -t Ubuntu-22.04’ to terminate Distro ‘Ubuntu-22.04’ run ‘wsl --unregister Ubuntu-22.04’ to unregister it from MS Store download and install Ubuntu-20.04 run wsl and initialize Ubuntu-20.04 run ‘wsl -s Ubuntu-20.04’ to set default to it in Docker Desktop Settings/Resources/WSL integration enable it and set it to default WSL distro ‘Ubuntu-20.04’
[boot]
systemd=true
If I put it in the ubuntu 20.04, I’ve have de kubernetes startup problem, and if I remove it from 22.04, the kubernetes start from it.
btw : also tested with 24.04
some one said the solution 2 works, I am working on it right now.
本文来自博客园,作者:阿维net,转载请注明原文链接:https://www.cnblogs.com/lucus/p/18856162