Challenge to install WSL2 and docker

The other day, I abandoned the installation of wsl2, but now (September 12, 2020) it is possible, so it is a memo.

Conclusion

I noticed that version 1903 also now supports WSL2, and I should have enabled'Virtual Machine Platform' and set the default version of WSL to 2.

reference https://docs.microsoft.com/en-us/windows/wsl/install-win10#update-to-wsl-2

1. Enable Virtual Machine Platform (start with administrator privileges)

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

image.png

2. Make WSL2 the default version

wsl --set-default-version 2

image.png

3. Update from version 1903 to 1909

image.png

Win + R → Command winver displays the following image.png

4. Set the Ubuntu distribution to wsl2

If you are already running ubuntu on wsl, you need to change the version to wsl2 I ran the following on powershell

wsl --set-version Ubuntu 2

image.png

Check the version with the command wsl -l -v

image.png

4. And put docker

https://docs.docker.jp/docker-for-windows/wsl.html

WSL 2 Linux kernel update

  1. Download here: https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
  2. Run the installer
  3. Something cute has begun!

image.png

  1. Check the version again by saying that you need a download of 2.3.0.2 or higher of docker descktop image.png

However, I couldn't change the WSL2 settings because it was decided at the time of installation, so I decided to re-install docker desktop here. ..

If I just uninstalled and reinstalled, the hyper-v version went up. ..

Apparently, windows 10 version 2004 is required, so set it up here https://www.microsoft.com/ja-jp/software-download/windows10 image.png image.png

After version 2004, you can install the one that can use wsl2. Maybe I didn't need to uninstall it. ..

image.png

Recommended Posts

Challenge to install WSL2 and docker
How to install Docker
Install docker and docker-compose on Alpine Linux
Install Webpacker and Yarn to run Rails
[Challenge Docker from 0] Overview and terms of Docker
Docker container build fails to install php-radis
Install Docker with WSL2 Memo ([Part 2] Docker introduction)
Note: [Docker] How to start and stop
Install Docker and create Java runtime environment
Install Docker on Raspberry Pi 4 and Raspberry Pi OS 64bit
Install SonarQube on Mac and challenge source analysis
Docker on Ubuntu18.04 on WSL2 and VSCode installation instructions
How to mount the batch file location via WSL2 and start the Docker container
CI/CD pipeline and Docker
Docker installation and initialization
Docker terms and commands
Easily build Redmine on Windows using WSL2 and Docker
Explode Docker with WSL2
Install Docker on Manjaro
Install and configure Keycloak
Feel free to try Elasticsearch cluster with WSL2 + Docker
How to install docker-machine
How to install MySQL
Install Rust in WSL2 Ubuntu environment and build WASM build environment
How to install Gradle and Kotlin with SDKMAN (Mac)
Install buildah and container-selinux
Common problems with WSL and how to deal with them
Comfortable Docker environment created with WSL2 CentOS7 and Docker Desktop
How to launch Swagger UI and Swagger Editor in Docker
Docker installation on WSL2
Install Composer with Docker
How to install ngrok
How to create an environment that uses Docker (WSL2) and Vagrant (VirtualBox) together on Windows
Install / run a standalone robot simulator in wsl2 / docker environment!
Beginners install docker for mac and prepare php7.0 operating environment
Make Docker confusing with Pokemon and make it easier to attach
Install docker and docker-compose on ubuntu in the shortest process
How to Install Elixir and Phoenix Framework on Ubuntu 20.04 LTS
Build a Node-RED environment with Docker to move and understand
I tried to build the environment of WSL2 + Docker + VSCode
[Docker] dokcer-compose run, Please run `yarn install –check-files` to update. Error
How to install PHP 7.4 and SQL Server drivers in CentOS 7.7
Write DiscordBot to Spreadsheets Write in Ruby and run with Docker
Challenge to create inquiry form
Install Docker on Raspberry Pi
Install Docker on Windows 10 PRO
Overview of Docker and containers
Install Docker on Ubuntu Server 20.04
Docker Compose basics and commands
Install yarn in docker image
Latest docker installation (Ubuntu 20.04 and Ubuntu 20.10)
[Rails] How to install devise
Migrating from vargrant to docker
How to set Docker nginx
Install Java on WSL Ubuntu 18.04
Build docker environment with WSL
Difference between bundle and bundle install
Install docker on AWS EC2
Install docker, docker-compose for debin10
[Rails] How to install simple_calendar
[Rails] How to install reCAPTCHA