LoginSignup
0
0

More than 3 years have passed since last update.

docker for windows install memo(Edge: 40323)

Last updated at Posted at 2019-11-05

WSL2のコンテナと通信でなくなったので、インストールし直した。

Edge Releaseのインストール

WSL2ベースの最新版の機能を利用するには、Edge Releaseのビルドをインストールする必要がある。このため、こちらから辿れるリンクからダウンロードできるバイナリを使ってインストールする。

WSL2 Engineの有効化

Docker for Windowsの設定から、WSL2 Engineを有効にする。

image.png

さらに、「Resources」-> 「WSL INTEGRATION」からどのディストリビューションを使用するかを指定する。

image.png

これでWindowsのターミナルからdockerコマンドを使えるようになるはず。

WSL2のDockerの設定

docker-ceをインストールし、DOCKER_HOSTを設定しておく。

$ sudo apt update
$ sudo apt install -y docker-ce
$ echo "export DOCKER_HOST=unix:////var/run/docker.sock" >> ~/.bashrc
$ source ~/.bashrc
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