0
2

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 1 year has passed since last update.

WSL2でDev Containersが使えなくなったときの対処法

Posted at

WSL2でDev Containersが使えなくなった問題の解決方法を小ネタとして記事にしました.

環境

Windows11 Pro 22H2
WSL2 Ubuntu
Visual Studio Code 1.18.0
Dev Containers v0.299.0
Docker version 24.0.4(WSL上にインストール)

問題

コンテナにDev Containersからアクセスしようとすると次のようなエラーが表示される(name/id の隣の空白はコンテナ名).

image.png

Choose Containerを選択するとDockerがインストールされているにも関わらず, 次のようなエラーが表示される.

image.png

解決方法

VSCodeの設定からDev > Containers: Execute In WSLを有効にする.

image.png

0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?