Snack

Books

Installation

Docker 是基于 Linux 的,在安装之前先安装 WSL2。

  1. Installing, this may take a few minutes...
  2. WslRegisterDistribution failed with error: 0x8007019e
  3. The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again.
  4. See https://aka.ms/wslinstall for details.
  5. Press any key to continue...

意思是在安装 WSL2 之前需要先启用某些功能,跟随指示来到 Windows Subsystem for Linux Installation Guide for Windows 10

  1. Installing, this may take a few minutes...
  2. Please create a default UNIX user account. The username does not need to match your Windows username.
  3. For more information visit: https://aka.ms/wslusers
  4. Enter new UNIX username:

下载好之后,创建初始账户就 OK 了。

WSL 更详细的文档,请查阅:Windows Subsystem for Linux Documentation