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 for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Mattes, Claudio 5 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

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.