Published on

Kubernetes v1.22.5 - Troubleshooting with Docker Desktop 4.7.1

Authors
Concept

Just in-case if anyone, is stuck after updating to Docker Desktop 4.7.1, local Kubernetes (v1.22.5) might not work.


  1. Reset Docker Desktop To Factory Defaults Right-click the docker icon on the system tray, then choose to troubleshoot, then click the Reset to factory defaults button.
image02

  1. Close Docker Desktop After the reset to factory default is done. Quit Docker Desktop

  1. Delete the .kube folder It is located on C:\Users<user name>.kube

Make a backup for it if you want to.


  1. Delete the pki folder
image03

It is located on C:\Users<user name>\AppData\Local\Docker\pki

Make a backup for it if you want to.


  1. Add some entries in your hosts file
  • 192.168.1.5 host.docker.internal
  • 192.168.1.5 gateway.docker.internal
  • 127.0.0.1 docker-for-desktop
  • 127.0.0.1 kubernetes.docker.internal
image04

  1. Run Docker Desktop As Administrator
image05

You’re done, I was able to run my local Kubernetes cluster.