都内SEのプログラミング勉強と雑記

2008年より都内でSEをしてます。業務システムをリプレイスし続けてきました。ここでは主にjavaやその周辺技術関連を紹介予定。学ぶことリスト:https://docs.google.com/spreadsheets/d/1G4lUqbHxsMf4PGgeRVe1ZL3JTOjlSTrqsJYe1CKz9UY/edit?usp=sharing

Docker for WindowsでWSL2で起動できないエラーの解消

dokcer起動時エラー

f:id:object1985:20210128150818j:plain
docker

Windows10 Proでしばらくdockerを使っていたが2021/01/27頃、Windowsアップデートをした。

そしたらDocker起動時ラーをはくようになった。

error during connect: 
Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/json: open //./pipe/docker_engine: 
The system cannot find the file specified. 
In the default daemon configuration on Windows, 
the docker client must be run elevated to connect. 
This error may also indicate that the docker daemon is not running.

色々面倒になったのでdockerをアンインストールして再インストール。

・アンインストール
Windows の スタート メニューから、 設定 > アプリ > アプリと機能
「アプリと機能」の一覧から Docker Desktop を選択し、 アンインストール

・インストール
Docker for Windowsで検索。

変わらなかった。

困ったのでWSL 2をインストールした。

したら「すまん、別のエラーだ」と言われた。

WSL 2 installation is incomplete

困ったのでWSL 2をインストールした。

ブラウザで以下を入力してダウンロード。
www.proxifier.com/tmp/Test20200228/NoLsp.exe

powershellを管理者として実行で立ち上げ
NoLsp.exeをダウンロードしたところまでpowershellで移動。

以下実行
NoLsp.exe c:\windows\system32\wsl.exe

これでdocker起動はできるようになった。 本当に困った困った。

引用

insider.10bace.com

follow us in feedly