windows10中安装docker desktop流程步骤
1.下载Docker Desktop软件包 (选windows版本)
https://www.docker.com/products/docker-desktop/
https://docs.docker.com/docker-for-windows/install/
2.开启依赖功能:Hyper-V
控制面板->程序和功能->启用或关闭 Windows 功能->勾选Hyper-V ->重启电脑
3.安装刚刚下载的软件包:Docker Desktop Installer
安装完提示你重启电脑
4.点击桌面图标后出现以下错误
原因:WSL2版本太低
解决方式:升级
升级包下载链接:
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
5.重启完使用cmd命令查看一下没报错,如下,就是安装好了
C:\Users\htz>docker -v
Docker version 20.10.17, build 100c701
C:\Users\htz>docker version
Client:
Cloud integration: v1.0.28
Version: 20.10.17
API version: 1.41
Go version: go1.17.11
Git commit: 100c701
Built: Mon Jun 6 23:09:02 2022
OS/Arch: windows/amd64
Context: default
Experimental: true
Server: Docker Desktop 4.11.0 (83626)
Engine:
Version: 20.10.17
API version: 1.41 (minimum version 1.12)
Go version: go1.17.11
Git commit: a89b842
Built: Mon Jun 6 23:01:23 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.6
GitCommit: 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
runc:
Version: 1.1.2
GitCommit: v1.1.2-0-ga916309
docker-init:
Version: 0.19.0
GitCommit: de40ad0
6.换docker镜像的源,用国内的 如下:
点击右上角的Settings->Docker Engine->复制贴上就ok了
{
"registry-mirrors": [
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn"
],
"insecure-registries": [],
"debug": true,
"experimental": false
}
到这windows10 下的Docker Desktop就安装配置好了,可以构建运行容器了
相关文章