0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Docker DesktopでKubernetesがずっとstartingで固まる場合の対処法

0
Last updated at Posted at 2020-08-16

Kubernetes の名前をよく聞くので Docker Desktop で試そうとしたら、そもそも起動しなかったというお話。

環境

  • macOS 10.15.5
  • Docker Desktop 2.3.0.4
    • Kubernetes v1.16.5

事象

PreferencesKubernetes を開き、 Enable Kubernetes にチェックを入れ、 Apply & Restart ボタンをクリックする。

左下にステータスが表示されるが、Kubernetes がずっと starting のまま、 running にならない。

ずっとstartingのまま.png

対処法

GitHub の Issue に 対処法 が載っていた。ファイルの削除を伴うので、 自己責任で お願いします(念の為)。

以下のコマンドを実行する。

$ rm -rf ~/Library/Group\ Containers/group.com.docker/pki/
$ rm -rf ~/.kube

PreferencesTroubleshoot を開き、 Restart ボタンをクリックする。

Restartボタン.png

うまくいけば、左下の Kubernetes が running になるはず。

runningになった.png

後日譚

数日おいてもう一度起動してみたけど、やっぱりうまく起動しない(もう一度上の手順をやったら起動したが...)

非力な PC スペックのせいもあって辛いので、結局、GKE に移った。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?