Install Docker on Windows Server 2019

In this blog post, I will show you how to install Docker on Windows Server 2019 and run Windows Containers.

Windows Server 2019 offers new advanced features for Windows Containers and today I will show you how to install Docker Enterprise edition on my host.

 Get started

The current Docker version as of writing this blog post is 18.03 which offers the latest features and security updates for Windows Server.

To install Docker on my Windows Server 2019 I will start with the PowerShell cmdlet below which will install the Docker PowerShell Provider.

Install-Module -Name DockerMSFTProvider -Repository PSGallery -Force

Next, I will install the latest docker version which is 18.03 and confirm that it is completed.

Install-Package -Name docker -ProviderName DockerProvider -RequiredVersion 18.03.1-ee-4 -force

Once completed, I will restart my server using

Restart-computer

When the server is up again, I will run the command below to confirm the version and below you will see that it’s Enterprise Edition version 18.03

docker version


Posted

in

by

Comments

2 responses to “Install Docker on Windows Server 2019”

  1. Jeroen Avatar
    Jeroen

    Needed to change to::
    Install-Module -Name DockerProvider -Repository PSGallery -Force -Verbose

  2. Glen Little Avatar
    Glen Little

    The first step worked for me. However, the second failed:

    PS C:windowssystem32> Install-Package -Name docker -ProviderName DockerProvider -RequiredVersion 18.03.1-ee-4 -force

    Install-Package : Unable to find package providers (DockerProvider).