OneGet / MicrosoftDockerProvider

Provider to search, save and install Docker
Other
135 stars 56 forks source link

Error installing docker on Windows Server 2016 #68

Open detlefs opened 4 years ago

detlefs commented 4 years ago

I get the following error when trying to install docker in an elevated PowerShell session:

Install-Package -Name docker -ProviderName DockerMsftProvider -Verbose -Force VERBOSE: Using the provider 'DockerMsftProvider' for searching packages. VERBOSE: Download size: 0.02MB VERBOSE: Free space on the drive: 37784.7MB VERBOSE: Downloading https://dockermsft.blob.core.windows.net/dockercontainer/DockerMsftIndex.json to C:\Users\ADMINI~1\AppData\Local\Temp\2\DockerMsftProvider\DockerDefault_DockerSearchIndex.json VERBOSE: About to download VERBOSE: Finished downloading VERBOSE: Downloaded in 0 hours, 0 minutes, 0 seconds. VERBOSE: Performing the operation "Install Package" on target "Package 'Docker' version '19.03.4' from 'DockerDefault'.". VERBOSE: Containers feature is already installed. Skipping the install. VERBOSE: Download size: 121.65MB VERBOSE: Free space on the drive: 37784.66MB VERBOSE: Downloading https://dockermsft.blob.core.windows.net/dockercontainer/docker-19-03-4.zip to C:\Users\ADMINI~1\AppData\Local\Temp\2\DockerMsftProvider\Docker-19-03-4.zip VERBOSE: About to download VERBOSE: Finished downloading VERBOSE: Downloaded in 0 hours, 0 minutes, 20 seconds. VERBOSE: Verifying Hash of the downloaded file. VERBOSE: Hash verified! VERBOSE: Found C:\Users\ADMINI~1\AppData\Local\Temp\2\DockerMsftProvider\Docker-19-03-4.zip to install. VERBOSE: Trying to unzip : C:\Users\ADMINI~1\AppData\Local\Temp\2\DockerMsftProvider\Docker-19-03-4.zip VERBOSE: Removing the archive: C:\Users\ADMINI~1\AppData\Local\Temp\2\DockerMsftProvider\Docker-19-03-4.zip Install-Package : A parameter cannot be found that matches parameter name 'DestinationPath'. At line:1 char:1

  • Install-Package -Name docker -ProviderName DockerMsftProvider -Verbos ...
  • 
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
    Exception
    + FullyQualifiedErrorId : FailedToDownload,Install-Package,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallP
    ackage

PowerShell version is 5.1.14393.3053 Windows Server 2016 patches with all available patches up to today

Any idea how to fix this?

slonopotamus commented 2 years ago

You might want to take a look at Stevedore project as a way to install modern Docker for Windows containers on both Windows Server/Client.