-
Notifications
You must be signed in to change notification settings - Fork 0
Setting Up Docker on Windows Server
Gary Moore edited this page Apr 6, 2019
·
5 revisions
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
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