4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Docker】WindowsでRancher Desktop起動時エラーの対処法(初期化 / クリーンインストール)

Last updated at Posted at 2023-04-26

目次

1. はじめに
2. 環境
3. エラー原因
4. 対応方法

1. はじめに

Windows10でRancher Desktopを起動すると下記エラーが表示され、アプリケーションが起動しなくなった。
image.png

Kubernetes Error
Rancher Desktop 1.8.1 - win32 (x64)
Error Starting Kubernetes
Error: wsl.exe exited with code 4294967295

起動できるようになったので、備忘もかねて記録を残しておく。

2. 環境

  • Windows10 Pro:22H2
  • Rancher Desktop:1.8.1
  • WSL: 1.2.5.0
  • kernel: 5.15.90.1

3. エラー原因

ログを確認すると、何らかの理由でrancher-desktop-dataディストリビューションが作成できない事がエラー原因と判明。

  code: 4294967295,
  command: [ 'wsl.exe', '--unregister', 'rancher-desktop-data' ]

エクスプローラーのペンギンから確認
image.png

4. 対応方法

GitHubのissuesに同じエラーの人がいたので同様の方法で復活!
Error Starting Rancher-desktop on Win10 with wsl error #2256
神↓
image.png

全てアンイストールしてからやると成功する確率が上がる(ようだ)

1.コントロールパネル > プログラムと機能 > Rancher Desktopをアンイストール
image.png

2.WSLからrancher-desktoprancher-desktop-dataのディストリビューションを削除

# WSLのディストリビューションを確認
> wsl -l -v
* rancher-desktop         Stopped         2
* rancher-desktop-data    Stopped         2

# WSLのディストリビューションを削除
> wsl --unregister rancher-desktop
> wsl --unregister rancher-desktop-data

3.Rancher Desktopの残っているフォルダを手動で削除

C:\Users\[ユーザ名]\AppData\Local\rancher-desktop
C:\Users\[ユーザ名]\AppData\Roaming\rancher-desktop

4.WSLを再起動

wsl --shutdown

5.Rancher Desktopを再インストール
image.png

6.rancher-desktoprancher-desktop-dataディストリビューションを作成

2024/12/24 update:下記の作業は不要

# [distro-x.xx.tar]ファイルのバージョンは自分環境を確認する
wsl --import rancher-desktop C:\Users\[ユーザ名]\AppData\Local\rancher-desktop\rancher-desktop "C:\Program Files\Rancher Desktop\resources\resources\win32\distro-x.xx.tar" --version 2
wsl --import rancher-desktop-data C:\Users\[ユーザ名]\AppData\Local\rancher-desktop\rancher-desktop-data "C:\Program Files\Rancher Desktop\resources\resources\win32\distro-x.xx.tar" --version 2

7.Rancher Desktopを起動
image.png

これで正常に起動😭

4
4
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
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?