7

Setup WSL2 & Docker on Windows

 1 year ago
source link: https://gist.github.com/RaihanShezan/b97761115c06a5699402c6a63edf8b4b
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Setting up WSL2

A slightly easier way of setting up WSL2 on Windows. If you prefer, you can also follow this Windows Documentation.

Check System Requirements:

  1. On Start menu search & click Run OR press ⊞Win + R.
  2. Type winver & press OK.
  3. Check if the number after OS Build is greater than the one mentioned in this WSL Documentation. If it is, you can proceed.

Installing WSL

  1. On Start menu search for Turn Windows features on or off.
  2. Scroll to the bottom & select (if not already selected) Virtual Machine Platform & Windows Subsystem for Linus, click OK.
  3. Click Restart now after it searchs for required files & applies changes.

Installing Linux Kernel Update Package

Follow this link on Windows Documentation to download & install the latest Linux kernel update package.

Setting WSL2 as Default

  1. Open terminal (Start>Run OR ⊞Win + R & then write cmd & press OK).
  2. Type the following & press OK.
wsl --set-default-version 2

If you see a message like The operation completed successfully., you're good to proceed.

Installing Linux Distribution of Choice

Follow instructions [mentioned here] or

  1. Open terminal & type wsl -l -o to see a list of all valid distributions (or Distro in short).
  2. Copy one of the Distro Names & type wsl --install -d <DistroName> to install it, e.g.
wsl --install -d Ubuntu-20.04
  1. After the installation is complete, a window will appear asking you to set UNIX Username & Password. Set & keep a note of it. When you type password, it won't appear but it will register your key strokes.
  2. Installation is complete. On Start menu search for your Distro name & click to start it.

Setting up Docker

Follow this Docker Documentation link to download & install Docker Desktop for Windows.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK