Docker desktop - kubernetes failed to start

8/8/2020

I have installed Docker Desktop (version : 2.3.0.4) and enabled Kubernetes. I deployed couple of PODS and everything was working fine, Since yesterday I am facing a weird issue mentioned below:

Unable to connect to the server: dial tcp 127.0.0.1:6443: connectex: No 
connection could be made because the target machine actively refused it.

As such, no changes were made on my system. I am using Linux Containers on Windows 10 machine.

Following steps I have tried:

  1. Restarted the Docker Desktop
  2. Tried the same with minikube and Docker Desktop both
  3. Tried to disable the firewall but due to some permissions, I am not able to turn it off.
  4. I have reset the kubernetes cluster as well.

Docker Desktop Error

-- sobby01
docker
docker-desktop
kubernetes

5 Answers

10/4/2020

I had similar problem.

  • Install Minikube

I install minikube and I run as following on windows 10. starting of kubectl Then I gave permission for docker.

  • Check cluster-info

When I check cluster-info result as following cluster info results

  • Try to get pods

When I try to get pods I did not get any error.

-- sibel kahraman
Source: StackOverflow

1/3/2022

As @N-ate mentioned above, after clicking Clean/Purge Data which removes all downloaded images from my computer, now docker and kubernates are running properly.
As you can see in the image below, I only have kubernates images running on docker and it takes most of the allocated memory. I guess the failure of starting kubernates was related to this memory issue. docker and kuber running image

-- Ali Sherafat
Source: StackOverflow

9/14/2020

I tried numerous different changes to fix docker desktop kubernetes failing to start. What finally worked for me is...

Clicked the troubleshooting icon (it's a bug icon) and then chose Clean/Purge Data.*

-- N-ate
Source: StackOverflow

8/8/2020

Finally,I found the solution for this.

VPN was causing the issue, I am using my office laptop and after restart, VPN was enabled and logged-in and due to this Kubernetes was not working.

After disabling the VPN, Kubernetes cluster working fine.

pods

Hope that helps others as well.

-- sobby01
Source: StackOverflow

2/13/2022

For me, just "Clean and Purge" wasn't enough. Here is what I did.

  1. Log off VPN
  2. Go to bug and "Clean and Purge Data"
  3. Also choose "Reset to Factory Defaults"
  4. Restart Docker Desktop
  5. Choose "Enable Kubernetes"

At this point, the "Starting" took a while for Kubernetes to be enabled. Now's it all good.

$ kubectl get namespace
NAME              STATUS   AGE
default           Active   80s
kube-node-lease   Active   82s
kube-public       Active   82s
kube-system       Active   82s
-- tom
Source: StackOverflow