1. 最好先卸载docker
2. 执行脚本 安装docker
# PowerShell Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1" -o install-docker-ce.ps1 .\install-docker-ce.ps1
3. 查看版本
docker version
Client: Version: master-dockerproject-2022-03-26 API version: 1.42 Go version: go1.17.8 Git commit: dd7397342a Built: Sun Mar 27 00:09:40 2022 OS/Arch: windows/amd64 Context: default Experimental: true Server: Docker Engine - Community Engine: Version: master-dockerproject-2022-03-26 API version: 1.42 (minimum version 1.24) Go version: go1.18 Git commit: 8941dcfcc5 Built: Sun Mar 27 00:05:42 2022 OS/Arch: windows/amd64 Experimental: false
标签:Windows,ce,switch,version,2022,docker,ps1,Containers From: https://www.cnblogs.com/qukaige/p/17083339.html