Unable to Install Docker on Windows server

Information

Hello,
I’m facing error when trying to install docker on windows server 2016.
below the command error of : Install-Package -Name Docker -ProviderName DockerMsftProvider
WARNING: Cannot find path “C:UsersxxxxxAppDataLocalTempDockerMsftProviderDocker
Default_DockerSearchIndex.json” because it does not exist.
WARNING: The argument cannot be bound to the “downloadURL” parameter because it is an empty string.
WARNING: The “AbsoluteUri” property could not be found in this object. Verify that it exists.
WARNING: The “RequestMessage” property could not be found in this object. Verify that it 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.
Au caractère Ligne:1 : 1

  • Install-Package -Name Docker -ProviderName DockerMsftProvider
  •   + CategoryInfo          : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],  
     Exception
      + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
    
    
    

ProviderName DockerMsftProvider has been successfully installed.

Need help please.

1 Like

Please can somebody help me ?

Docker does not provide a Docker installer/package for Windows Server.
The installation instruction on the Microsoft pages use Moby (Chocolatey uses the same).

The primary support channels for Docker on Windows Server are:
– the Moby Github project: https://github.com/moby/moby/issues/
– the Moby forum: https://forums.mobyproject.org

There used to be Docker Enterprise for Windows Server, which is discontinued. Since then Moby is used instead.

If you’d like to use a Microsoft provided installation script for Windows Server, you can look here: Prepare Windows operating system containers | Microsoft Learn

1 Like

Hello @vrapolinario thanks for your response, Docker has been installed but I’m having the error when i execute the command docker version. after the command result i have the error : error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get “http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json”: open //./pipe/docker_engine: Le fichier spécifié est introuvable.

And the command Dockerd result is :
time=“2023-08-22T18:42:04.833270300+01:00” level=info msg=“Starting up”
failed to start daemon: this version of Windows does not support the docker daemon (Windows build 17763 or higher is required.

Please can you help me ?? Please can you help me

It seems you get this error:

It could be that your Windows server version is too old. According to my quick Google search

Windows Server 2016 was released to manufacturing on September 26, 2016, bearing the version number of 10.0.14393 (same as Windows 10 Anniversary Update).

Source: Windows Server 2016 - Wikipedia

So Major version 10 would be available but the other condition is the build number being smaller than osversion.RS5 which is:

I quote it too:

	// RS5 (version 1809, codename "Redstone 5") corresponds to Windows Server
	// 2019 (ltsc2019), and Windows 10 (October 2018 Update).
	RS5 = 17763

As the comment states, you need at least Windows Server 2019 if I interpret it correctly.

1 Like