0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

The command 'docker' could not be found in this WSL 2 distro.

0
Posted at

はじめに

Dockerを用いて、アプリの環境を構築していたさいにエラーとなりました。

問題

Turbopackを用いてNext.js(TypeScript)の環境をつくり、Dockerfileを動かそうとしました。
docker build -t app

そこでエラーが起こりました。

解決方法

DockerのメインエンジンはWindows上で動作しています。
WSLの中からそのエンジンを遠隔操作するために、「WSL統合」という設定をONにする必要があります。

image.png

設定が完了しました。再度確認しました。
docker --version
Docker version 29.8.0, build 88096ef

おわりに

設定になかなか苦戦しています。

参考文献

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?