When Kubernetes doesn't start on Docker Desktop for Mac

Status

It used to start, but one day it suddenly stopped working, The situation where I've been stuck with Kubernetes is starting ... all the time. The situation does not change even after restarting. Moreover, the preference is frozen in this state and cannot be opened.

Environment: Docker Desktop for Mac

approach

There was a workaround in the issue. https://github.com/docker/for-mac/issues/2990#issuecomment-544754304

Note: Kubernetes context and more will disappear: crying_cat_face:

1. Delete the contents of pki and .kube

Hit the following command to delete the corresponding one.

rm -rf ~/Library/Group\ Containers/group.com.docker/pki/
rm -rf ~/.kube
  1. Reset Kubernetes cluster Click Troubleshoot-> Reset Kubernetes cluster スクリーンショット 2020-09-11 14.04.28.png

  2. Restart I restarted Docker Desktop for Mac and it started.

Supplement

――I didn't want to erase .kube, so I tried erasing only pki, but it didn't work. .. .. --I can't open my preference because it's stuck: anger: --When you restart Docker Desktop for Mac, there is a timing when you can move the preference for about 10 seconds, so open it with a spirit: innocent:

I would be grateful if you could teach me if there is any other better way.

Recommended Posts

When Kubernetes doesn't start on Docker Desktop for Mac
What to see when IntelliJ doesn't start on Mac
Install metrics-server with Helm on Kubernetes that comes with Docker for Mac
Install Docker Desktop for Mac with Homebrew
Introducing Docker Desktop for Windows on WSL2
Operate Docker Desktop for Windows on Linux (WSL)
How to start with Hyper-V instead of WSL2 on Docker Desktop for Windows
When Docker for Mac 2.4.0.0 does not reflect file changes
I tried using Docker Desktop for Windows on Windows 10 Home
Until you start nginx on CentOS using Docker on Mac OS
A story about speeding up unittest on Docker for Mac
Measures for permissions when building MySQL with Docker on WSL2
Steps to run docker on Mac
Try using Redmine on Mac docker
Docker on NILFS2 filesystem (for raspbianOS)
Use Docker on your M1 Mac
mysql doesn't start up with docker.
Docker For Mac Slow: Countermeasure II
When Gradle build stops when importing on Mac
Check when nvidia-smi on Ubuntu doesn't work
Customize OpenFOAM v8 Docker Image on Mac
Getting Started with Docker for Mac (Installation)
Precautions when making Docker for deep learning
Run Ubuntu + ROS with Docker on Mac
kubernetes + docker
Until you start developing android apps on mac
Building a Ruby environment for classes on Mac
Install an older version of Docker for Mac
[Docker for Mac] Deal with Credentials store error
How to use nginx-ingress-controller with Docker for Mac
Xdebug on Docker doesn't work on M1 Macbook Pro
A memo when building a Rails 5.2 development environment using Docker Desktop + WSL2 on Windows 10 Home
Docker for Windows: MySQL container does not start when migrating from Hyper-v to WSL2