Install Package Docker - Windows Server 2022 error

W. Daniel Hernández 46 Reputation points
2023-07-04T18:02:20.6033333+00:00

Hello

I have Windows Server 2022 Standard 21H2 Build 20348

I am trying to install the docker package.

First Step (Works OK)

Install-Module -Name DockerMsftProvider -Repository PSGallery -Force

But, When I try to run the command I get the following error message.

Install-Package -Name docker -ProviderName DockerMsftProvider

Install-Docker

"WARNING: Cannot find path 'C:\Users\UserAA\AppData\Local\Temp\DockerMsftProvider\DockerDefault_DockerSearchIndex.json' because it does not exist.

WARNING: Cannot bind argument to parameter 'downloadURL' because it is an empty string.

WARNING: The property 'AbsoluteUri' cannot be found on this object. Verify that the property exists.

WARNING: The property 'RequestMessage' cannot be found on this object. Verify that the property exists.

Install-Package: No match was found for the specified search criteria and package name 'docker'. Try Get-PackageSource to see all available registered package sources."

Can someone help me with this problem.

Best Regards,

Daniel Hernandez

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,237 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,396 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mattes, Claudio-GMZ 0 Reputation points
    2023-07-05T06:59:51.2066667+00:00

    I have the same issue

    We cannot reach and resolve the DNS of the provided location: https://dockermsft.azureedge.net/dockercontainer/DockerMsftIndex.json


    SOLUTION

    I see, this service has been shut down since May 23rd 2023, @W. Daniel Hernandez see and follow the steps provided here: https://github.com/OneGet/MicrosoftDockerProvider

    0 comments No comments