Install Docker with WSL2 Memo ([Part 2] Docker introduction)


Windows10 Pro


Use WSL2 as backend for Docker Desktop for Windows

Docker installation

During installation

You should see a checkbox saying "Enable WSL 2 Windows Features" "Enable Hyper-V Windows Features" appears, Unable to install Docker with backend specified in WSL2. .. ..


WSL2 is running on

wsl -l -v
  NAME      STATE           VERSION
* Ubuntu    Running         2

I get it. .. ..

Recalling that the OS version was 1909, → 2004 or above is a prerequisite Souikotoka

It has not come down with Windows Update, so update manually from here.

After updating, when you start Docker installation and install it, It came out safely as "Enable WSL 2 Windows Features". I proceeded as it was and was able to install it.

 wsl -l -v
  NAME                   STATE           VERSION
* Ubuntu                 Stopped         2
  docker-desktop         Running         2
  docker-desktop-data    Running         2

Supplement Just in case, I tuned the memory like this.

Recommended Posts

Install Docker with WSL2 Memo ([Part 2] Docker introduction)
Introduction of Docker --Part 1--
Explode Docker with WSL2
Install Composer with Docker
Install Docker with WSL2 Memo ([Part 1] Until WSL2 is installed) * The version that did not follow the official Doc
Docker autostart settings with wsl2
Build docker environment with WSL
Introduction to Linux Container / Docker (Part 1)
Install java with Ubuntu 16.04 based Docker
Introduction to Linux Container / Docker (Part 2)
Server processing with Java (Introduction part.1)
Challenge to install WSL2 and docker
docker memo
Install Docker Desktop for Mac with Homebrew
Image flew when updating Docker with WSL2
GPU recognition with docker using WSL2 (August 2020)
Try building Express + PostgreSQL + Sequelize with Docker [Part 2]
docker tutorial (memo)
[Memo] Create a CentOS 8 environment easily with Docker
Docker operation memo
Environment construction command memo with Docker on AWS
I couldn't install docker with raspberry pi2 b +.
Docker command memo
[Memo] docker summary
Try building Express + PostgreSQL + Sequelize with Docker [Part 1]
Rails Docker ~ Part 1 ~
[Introduction to Docker x ECS] ECS deployment with docker compose up
Bundle install with docker + rails6 does not reflect gem
Command memo to install xeyes in ubuntu docker environment
Feel free to try Elasticsearch cluster with WSL2 + Docker
Build Java development environment with WSL2 Docker VS Code
Comfortable Docker environment created with WSL2 CentOS7 and Docker Desktop
Create Chisel development environment with Windows10 + WSL2 + VScode + Docker
Install java with Homebrew
Install Ruby 3.0.0 with asdf
SaveAsBinaryFile with Spark (Part 2)
Docker x Rails 6 (memo)
Launch MariaDB with Docker
Rails deploy with Docker
Run Pico with docker
docker inspect --format memo
Use Puphpeteer with Docker
Docker Machine command memo
Install Gradle with ubuntu16.04
How to install Docker
Operate Emby with Docker
Try WildFly with Docker
Use ngrok with Docker
Run Payara with Docker
[Docker] Connection with MySQL
Php settings with Docker
Getting Started with Docker
ubuntu on wsl part 10
Disposable PHP with Docker
Docker installation on WSL2
Install / run a standalone robot simulator in wsl2 / docker environment!
I tried to make an introduction to PHP + MySQL with Docker
[PHP8] Install and use PECL YAML function (YAML parser) with Docker
Measures for permissions when building MySQL with Docker on WSL2