Install Docker in Windows Server 2019 core using PowerShell

Install Docker for using operating system level virtualization that allows you run softwares in containers. Docker can be installed in windows server 2019 GUI and core editions. PowerShell can be used to install docker in windows server 2019 core. As there will be no GUI to perform GUI based installation.

Windows 2019 server have built in “container” feature that you have to install manually. Container feature can be easily installed from “add remove roles” wizard in GUI server versions.

Install Container feature using power-shell

Powershell is an easiest method to enable container feature with a single command. Open the powerShell tool with administrator rights.

Run below command to install

PS > Enable-WindowsOptionalFeature -Online -FeatureName Containers

install container server2019 powershell

Install Docker in Windows Server 2019 core

Run the below 2 commands to install Docker using powershell. type “y” and press enter to every questions asked.

PS > Install-Module -Name DockerMsftProvider -Repository PSGallery -Force

Install Docker in Windows Server 2019 core 1of2
PS > Install-Package -Name docker -ProviderName DockerMsftProvider

Install Docker in Windows Server 2019 core 2of2

You have now Docker installed on your 2019 server core.

Leave a Reply

Are you a human being ? *