OneGet / MicrosoftDockerProvider

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

Unable to install Docker on windows 2016 server #78

Open sandhyarme opened 3 years ago

sandhyarme commented 3 years ago

Hi All,

We were planning to install docker on windows 2016 by following below steps -

Install Docker Provider

Install-Module -Name DockerMsftProvider -Force

Install Docker from docker Provider

Install-Package -Name docker -ProviderName DockerMsftProvider -Force Restart-Computer -Force

But while docker provider we are facing error with package provider, so have tried to install package provider

Install-Module -Name DockerMsftProvider -Force Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force facing same error as in attached screenshot.

Please suggest us to overcome with the above. image (1)

LtLoLz commented 3 years ago

From what I gathered across a few webpages and stackoverflow, this is due to deprecation of TLS 1.0 and TLS 1.1 on Windows server 2016. These commands worked for me.

Register-PSRepository -Default -Verbose Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted

After this I could install NuGet and DockerMsftProvider module.

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.