How to Install Docker On Windows Server 2016/2019/2022 Quickly
Table of Contents
- Run Powershell ISE
- Install the NuGet package
- Install the DockerMsftProvider module in PowerShell
- Install Docker
- Restart Server 2016/2019/2022
1. Run Powershell ISE
Open your Powershell ISE in Run as administrator mode. Run the command:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
2. Install the NuGet package
Now install the NuGet package using the below command:
Install-PackageProvider -Name NuGet
3. Install the DockerMsftProvider module in PowerShell
Now install the DockerMsftProvider module in PowerShell. Use the below command to do so:
Install-Module -Name DockerMsftProvider
4. Install Docker
Install Docker Using below command:
Install-package -name docker -providername DockerMsftProvider -Verbose -Force
5. Restart Windows Server 2016/2019/2022
Restart windows server using below command in PowerShell:
Restart-Computer
Refrences:
https://dev.to/darksmile92/powershell-disabled-support-for-tls-1-0-for-the-gallery-update-module-and-install-module-broken-1oii
https://dev.to/darksmile92/powershell-disabled-support-for-tls-1-0-for-the-gallery-update-module-and-install-module-broken-1oii
https://alitech.io/index.php/2022/03/04/cyberpanel-docker-integration/
https://www.hostingbyalitech.com/en/blog/post/solved-fixed-kubernetes-docker-could-not-create-directory-wordpress