skip to Main Content

I ran the following powershell script:

write-output "Installing nuger package provider";
[System.Net.ServicePointManager]::SecurityProtocol = 
[System.Net.SecurityProtocolType]::Tls11 -bor [System.Net.SecurityProtocolType]::Tls12;
Install-PackageProvider -name nuget -force;
if (-not $?) {
   Write-Error 'Install package provider failed'
   exit 1
}
write-output "Installing Docker module";
Install-Module DockerMsftProvider -Force;
if (-not $?) {
  Write-Error 'Install docker module failed'
  exit 1
}

write-output "Installing Docker package";
Install-Package Docker -ProviderName DockerMsftProvider -Force;
if (-not $?) {
    Write-Error 'Install docker package failed'
    exit 1
}

But getting the following error at the last step:

enter image description here

I have tried everything i could find on the internet, even this link: https://stackoverflow.com/questions/68954153/docker-installation-fails-on-windows-server-2019#:~:text=The%20issue%20was%20apparently%20with%20the%20ciphers%20in,default%20and%20after%20rebooting%2C%20the%20Docker%20install%20succeeded.

But nothing has helped.

What am i missing?

2

Answers



  1. While using your method got the same Error and I tried another approach.

    • I tried below are steps:
    Invoke-WebRequest -Uri [https://desktop.docker.com/win/stable/Docker%20Desktop%20Installer.exe](https://desktop.docker.com/win/stable/Docker%20Desktop%20Installer.exe "https://desktop.docker.com/win/stable/docker%20desktop%20installer.exe") -OutFile DockerInstaller.exe
    

    enter image description here

    Start-Process -Wait -FilePath .DockerInstaller.exe
    

    enter image description here

    enter image description here

    docker version
    

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search