Loading
0

Ubuntu 20.04 LTS 安装 Docker

以管理身份运行命令行或PowerShell后执行下面命令:

启用WSL:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

开启虚拟机功能:

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

将wls2设为默认:

wsl --set-default-version 2

设置docker为自启动:

 systemd-sysv-install enable docker

参考:

最后编辑于:2021/8/3作者: joycode

我不入地狱,谁入地狱?

评论已关闭