windows安装DOCKER.md 1.7 KB


notion-id: 06b6e776-2e11-4e14-aeed-6293ad70e8

https://blog.csdn.net/qq_32506245/article/details/126451984 1、在开始菜单右键,使用管理员模式打开 windows power shell,输入以下指令。 启用适用于 Linux 的 Windows 子系统 dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart 启用Windows虚拟机功能 dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart 将WSL2设置为默认版本 wsl --set-default-version 2 2、下载 适用于 x64 计算机的 WSL2 Linux 内核更新包,下载完成后,双击打开安装即可。 https://learn.microsoft.com/zh-cn/windows/wsl/install 3、下载docker desktop安装 4、在docker设置中添加镜像网址"registry-mirrors":["https://docker.mirrors.ustc.edu.cn/"] 。添加完成后点击右下角蓝色按钮应用设置。 ![[Notion/技术支持/Windows系统/💫Windows服务配置💫/attachments/Untitled.png]] 5、在power shell中输入docker info,有显示  Registry Mirrors: https://docker.mirrors.ustc.edu.cn/,即表示镜像设置成功。 启动问题

wsl --terminate docker-desktop

wsl --terminate docker-desktop-data

关闭 Docker Desktop GUI(取消/关闭任何错误消息)
使用程序管理器关闭所有docker desktop进程

再次启动 Docker 桌面。

powershell
optionalfeatures.exe

适用于 Linux 的 Windows 子系统 

关闭后重新开启