Install the OneGet PowerShell module.
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install the latest version of Docker using OneGet.
Install-Package -Name docker -ProviderName DockerMsftProvider
After the installation is complete, restart the computer.
Restart-Computer -Force
Install the base container image
docker pull microsoft/windowsservercore
docker pull microsoft/nanoserver
Post a URL first and organize it later.
https://docs.microsoft.com/zh-cn/virtualization/windowscontainers/manage-docker/configure-docker-daemon