解决在windows server 2019 上安装Docker遇到Cannot verify the file SHA256. Deleting the file等问题

当运行命令 :Install-Package -Name docker -ProviderName DockerMsftProvider时出现以下问题:

WARNING: Cannot verify the file SHA256. Deleting the file.
WARNING: C:\Users\ADMINI~1\AppData\Local\Temp\2\DockerMsftProvider\Docker-19-03-1.zip does not exist
Install-Package : Cannot find path 'C:\Users\ADMINI~1\AppData\Local\Temp\2\DockerMsftProvider\Docker-19-03-1.zip' because it does not exist.

尝试以下解决方案:

cd C:\Users\Administrator\AppData\Local\Temp\DockerMsftProvider

Start-BitsTransfer -Source https://dockermsft.blob.core.windows.net/dockercontainer/docker-19-03-1.zip

Get-FileHash -Path C:\Users\Administrator\AppData\Local\Temp\DockerMsftProvider\Docker-19-03-1.zip -Algorithm SHA256

Install-Package -Name docker -ProviderName DockerMsftProvide

Start-Service Docker

注意:版本号可能有所不同。具体原因和其他注意问题之后有时间写上来

 

 

你可能感兴趣的:(Docker)