Stuck with Docker : kubernetes stuck at starting? We can help you.
Here at Bobcares, we get requests from our clients to handle similar issues as a part of our Server Management Services.
Today, in this article we will steps followed by our Support Engineers to resolve it.
Docker : kubernetes stuck at starting
Basically, after updating Docker for Desktop to latest Edge channel version: 184.108.40.206 on a Windows 10 machine.
Sometimes, kubernetes will no longer work as it is always stuck at “Kubernetes is Starting”.
Today, let us see the steps followed by our Support techs to resolve it.
1. Firstly, restore Docker to Factory Default settings and Quit Docker for Desktop
2. Then, delete the folder C:\ProgramData\DockerDesktop\pki (Make a backup of it just in case)
3. Next, delete the folder ~\.kube\ (Again make a backup to be safe)
4. Start Docker again, open Docker settings, make the necessary configuration changes (adding proxy, setting resource limits, etc..), Enable Kubernetes and let it start
5. Then, wait a while and both Docker and Kubernetes will be up now.
When you try to connect to Kubernetes using kubectl, you might face another issue like
Unable to connect to the server: x509: certificate signed by unknown authority
You can solve this by
1. Firstly, open ~.kube\config in a text editor
2. Then, replace https://kubernetes.docker.internal:6443 to https://localhost:6443
3. Try connecting again.
Or if you are behind a (corporate) proxy: add kubernetes.docker.internal to NO_PROXY (eg export NO_PROXY=kubernetes.docker.internal), given that the proxy is configured correctly.
[Need assistance with docker queries? We can help you]
Today, we saw how our Support Techs resolve Docker : kubernetes stuck at starting.