Setting Up Docker on Windows Server - Gary-Moore/developmentwiki GitHub Wiki

Windows server 2019 VM

PowerShell modules

To install Docker we'll use the OneGet provider PowerShell module which works with providers to perform the installation--in this case the MicrosoftDockerProvider. The provider enables the containers feature on your machine. You also install Docker which requires a reboot. Docker is required in order to work with Windows containers. It consists of the Docker Engine and the Docker client.

Open an elevated PowerShell session and run the following commands.

First, install the Docker-Microsoft PackageManagement Provider from the PowerShell Gallery.

Install-Module -Name DockerMsftProvider -Repository PSGallery -Force

Next, you use the PackageManagement PowerShell module to install the latest version of Docker.

Install-Package -Name docker -ProviderName DockerMsftProvider

https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/quick-start-windows-server

Further setup help

Windows base Images

Next you need to install the windows images, these can be found on dockerhub:

Docker Hub windows server core

docker pull mcr.microsoft.com/windows/servercore:1809
docker pull mcr.microsoft.com/windows/nanoserver:1809