> 文章列表 > Docker下载、安装

Docker下载、安装

Docker下载、安装

安装docker前,需要安装WSL Linux 内核、Hyper-V

Hyper-V

首先确认系统是否安装:Hyper-V

 如果没有则安装:

pushd "%~dp0"
dir /b %SystemRoot%\\servicing\\Packages\\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\\servicing\\Packages\\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL

将命令复制到文本中,将后缀名改为 cmd

 以管理员身份运行,安装Hyper-V

WSL 官网

旧版 WSL 的手动安装步骤 | Microsoft Learn

WSL下载与安装

Docker官网

Docker: Accelerated, Containerized Application Development

Docker下载

 

Docker安装

 

重启后提示: